apple

Creating APPS with Apple’s Swift Programming Language

Posted on Updated on

At 10:30am on 3/21/2018, I attended ACreating APPS with Apple’s Swift Programming Language, presented by Rafi Guroian and assisted by David Sandersen, at the 2018 North Carolina Computer Instruction Association Conference in At Asheville-Buncomb Technical Community College in Asheville, NC.

Rafi Guroian and Dave Sandersen of Apple presented at today’s event.

This two-part workshop was geared toward chairs and faculty. You can do anything you want on your last day at work- especially talking about new products. ūüôā In modern environments you no longer have to have lab time, scheduled time and duplicated students on a single machine. Block- based coding still exists, and this is the challenge.

So what does coding mean? coding is the buzzword for programming. A better questions might be how does this affect your everyday life. Average American uses 8-12 apps between the time they get up and the. time they hit their cars. Coding has taken over and its important not to think about today, but where will our students be 20 years from today? how can we prepare our students for that day?

-how can we prepare the graphic design student of today for the future? Where were we 20 years ago or more? Its difficult.

we taught ourselves out of manuals, learning based on reading and mimicry. Now we watch videos to learn and have numerous internet resources.

in 2007 the iPhone came out. In 2008, the App Store opened. So, the first year was what you see is what you get. With the App Store, you could learn to code, screen scrape, etc. in the background, it was clicking the web buttons for you, but the front end made the iPhone and blackberry very usable without having to squeeze and pinch on a standard screen just to get around.

Rafi told us about how he built a small app to see Amtrak status. He was eventually handing it out and considering selling it. He showed it to the CIO of Amtrak and was hired to develop a full Amtrak app, the job which changed the trajectory of his life.

One point Apple would like to see is that everyone should have the opportunity to change the world. In the beginning, the problem tended to be access to computers. The results of the programming are like magic and excitement for many- either the first time or throughout their time. While many times people start because they want something and it doesn’t exist, so why not make it?¬†

The initiative is called “Everyone Can Code”. Elementary is based on iPad. Middle school uses Swift Playgrounds app. This is a fine program for middle, high school, and some college. In High School and college, Xcode has Playgrounds as well. Swift Playground is Xcode under the hood, and you can put out executables ¬†which move to Xcode.

Intro to App Developement with Swift. it is a 1-semester course and it has a teacher guide. Its a great way to get the feet wet. APP Development with SWIFT is a second course (with teacher guide) is available for the people who’ve used Swift playgrounds before. These work well as flipped classroom texts, with students doing the work and coming to the lab time with questions.

We built questionbot as a warm-up. If you’re looking to do work in the workforce with apple products, you’ll need to know Xcode. like a mechanic works on a real machine, the curriculum allows students to work with the real deal.

Using Xcode compiling a program it can be pushed to your iPhone or iPad where it can live for a week. Then it disappears. It sideloads foundation. If side loading permanently was allowed, it would make lotsa of virii. By having these self-destruct, it stops a series of problems. You can purchase a license for paid apps, and build your own certificates for enterprise-only applications.

The questionbot was not very bright in its initial version. So we split into the code to make adjustments. We began by making some cosmetic adjustments, and now we’re getting ready to assist the questionbot in some ways to answer questions.¬†

First though, we moved through the Swift Playgrounds APP and talked about how it can be used in the classroom, and how it can be used by students as well as professionals. Many professionals will use this for Augmented reality items and compile it.

Swift can be compiled in unix, windows, raspberry pi, and a few others but the programming UI for Xcode doesn’t exist outside of Apple. You can compile the runtime in windows machines, but you may need to compile those as Java code to be useful. Microsoft and other fortune 1000 companies use Swift code to compile APPS for enterprise and in-company apps and user interfaces for iPhone and other apps.

With a few questions, this section ended with a confident crowd, and some questions about how students might be able to move into lab spaces, or possibly using materials in their home.

Advertisements

Take 2 SWIFT Bites Out of Apple’s New Programming Language

Posted on Updated on

by Linda Cohen

Building with XCode through http://www.appledeveloper.com . It is a 4GB application

WEB187 is the iOS developer course, although WEB251 is also used at another college. WEB151 ANdroid WEB251 iOS at Waketech.edu

We’ll be building a discount app. There is a LET command which will allow a variable to become a constant. However, forms are also required to be a LET command, so we’ll be looking at that as well.

We’ll be suing a single VIEW and sticking with that VIEW in this class. We chose single view. We’ve given a product name, and we’ll create. This is made for iPAD, but there are different ways to create for the iPhone. The target we’re using ins 9.2. If you have an older version, use that.

The word TEAM says NONE. That means that your work is open source. That allows you to work for android, windows, or apple.

When working with android, its all xml in the background. Then you had to create the JAVA. Android developer studio seems to have some wonderful parts

The STORYBOARDis where we’ll design the interface for the application. Clicking on the first view, we’ll see the information on the view. You can add titles and other materials here as well.

Naming Conventions for the Objects

  • LABELS¬†are for output only and start with lbl
  • TEXT fields are for input and start with txt
  • BUTTONS are to create an event where the actual code goes and they start with btn

A Label is added, and the right column allows us to give specifics about these items. Several display pieces are allowed to show us the basic profiles. Some basic labels are added in here, names, discount amounts, amount of the meal without text. And then, we add a button. We did not add labels with names.

VIEW >> SHOW >> ASSISTANT EDITOR

ONce you have the interface, you need to relate the code behind the scenes. Next right column with left boxes allow us to visit this graphic layout in several different fashions. txt is for text lbl is for labels

Buttons work similarly, dragging the visual side to the code area. While the others are OUTLETS, the button is an ACTION. “Touch up inside” is the same as click or touch. Applie will be different and not count if dragged across.

Initialize all variables BEFORE they are used.

let TAX = 0.07  //  Declare TAX as a constant

var subTotal : Double = 0.0

var total : Double = 0.0

lblDisplayTotal.text = “”

let name = txtName.text!

let discountAmt(txtDisAmt.text!)

let mealCost = Double(txtMealCost.text!)

This material does not require () for IF statment, but does require {

if discoutnAmt != nil && mealCost != nil

{

   subTotal = mealCost! РdiscountAmt!    // create subtotal

   total = subTotal*TAX + subTotal   // create total

   lblDIsplayTOtal.textColor = UIColor.blueColor()

lblDisplayTotal.text = String(format: “Thank you, /(name) with tax, your total is %.2f”, total )

Once everything is selected, choose “Get Results” The PIN tool. Clicking on the top three lines will tell you the number of restraints you’ll need to keep this in place. These restraints allow you to keep these items in place with a responsive design. To get around this, Clear the restraints, make changes, and then return the constraints.

PRODUCT >> DESTINATION >> IPAD2

We loaded up the program. It worked. Once you’ve developed in the open source section, you can attach your ipad directly (because we programmed for ipad) and it will automatically add this to your device.

Digital Publishing for Mobile Learning Initiatives

Posted on Updated on

Digital Publishing for Mobile Learning Initiatives

This presentation at the NCCFA 2013 was run by Apple, and outlined the uses and working of the iTunes U (iTunes University).

It was an interesting presentation, but I am unsure if it would work out very well for us. The books in many cases were a limited variety, not available with every publisher and most certainly not with a great deal of the books we’re currently using. Of a similar issue was the fact that iTunes University required every student to have iTunes installed as well as an active iTunes account. Online books were moderately expensive, and would only be available when students were connected to the internet.

In short, this system is expensive, computer-dependent, internet dependent, and requires accounts with systems students may not enjoy. Also, iTunes is constantly… and I mean CONSTANTLY demanding updates. I think our students might be getting themselves into a system requiring numerous updates and security issues.

Could not give me recommendation on this.