Monday, September 14, 2015

Beta Upgrade iOS 9.X

Go into iTunes with the phone connected to your pc/iMac



Back up your device



https://developer.apple.com/ios/download/


My device is model a1533 (listed on back of iphone)


Select your model and it starts the download:




Hold Alt/Option (on a Mac - it's Shift on a PC) and click the Restore iPhone button on the device's Summary tab (next to Check for Update)

Saturday, July 25, 2015

Single View Application Tips

When you create your first application there are different types you can do, but in this case I will do The SingleViewApplication where everything is displayed on one screen. Other choices are the Master Detail which is a List Page with Details navigation. Page based, Tabbed Based, and Game are other choices. In this case I will be using swift and Device type will be universal. After clicking create, you will see the project setting. You will see Deployment Info under General. In there you can specify the supported orientations. Moreover, the App Icons information is under General further down the page, Click on the arrow button and you can supply the icons. There is iPad settings, spotlight, and app icons to drag into the project. Likewise, there is iPhone phone, app, and spotlight icons to provide. Also, it is on this panel where you can drag images into the project by just dragging them in. Next step is on the right hand side of XCode is where I'll add an Image View form the object library. After dragging an image onto the storyboard, will fill in the attributes (inspector at top looks like a pencil. Select an image from your asset catalog for image box. The mode input has items like Aspect Fit (which maintains ratio to fit in your image view) and many others. There is also a size (inspector looks like a ruler) where you can increase the height and things such as Y attribute which positions the image vertically. In bottom left of storyboard, there is a way to show additional details of storyboard by clicking the Show Document Outline button. It shows the UI components on your screen. There are additional items in the tree that is displayed such as Top Layout Guide, Bottom Layout Guide. You can set constraints with your GUI objects such as vertical spacing. Also, there is view component in the tree where you can create constraints such as Leading or Trailing space to container margin.

Saturday, July 11, 2015

ioS  text replacement tip


The  is not on the iOS keyboard. It's not an official unicode character yet...On a mac you can enter option-shift-K and you easily can have one. Here is tip on how to create a  texting shortcut
http://www.cultofmac.com/295628/make-typing--iphone-easier-emoji/

Don't forget to email it to yourself. Or, some other way to upload it to your iPhone, or other  device.


http://cdn.cultofmac.com/wp-content/uploads/2014/09/AAPL.gif


Apple iOS Constraints 101

Here is a good video on doing a Hello World with constraints



Horizontal and Vertical alignment constraints:





Saturday, July 4, 2015

Always On Music By Apple

Watch Out "The Apple Watch does not make you stupid or boring or brusque. It makes you present and mindful, better able to enjoy the beautiful things and wonderful people in your life without distraction. Every other Apple device gives you fun, exciting complications. The Apple Watch simply gives you freedom"


Apple Insider

  • on-demand streaming service Beats 1
  •  a 24-hour Internet radio station hosted by live DJs
  • replaced iTunes Radio with Apple Music Radio, a similarly free service but with a different set of stations, many of them curated by Apple staff


http://recode.net/2015/07/02/apple-musics-beats-1-is-like-radio-before-it-sucked/

http://techcrunch.com/2015/06/17/planted-launches-ios-app-to-help-non-technical-millennials-find-startup-jobs

Sunday, June 28, 2015

Swift use of optionals

In learning swift the question mark or the exclamation point and when to use them can be confusing for the beginner. I found an article that really does a good job at explaining this point.

http://www.touch-code-magazine.com/swift-optionals-use-let/
For example if those pieces of data represent an employee profile in a company database, for some records you might not know the height of the employee – in that case you shouldn’t set a value of 0 – you really should rather set the value to nothing or missing.


...


When you put a ! behind the property name you tell the compiler I don’t care that this property is optional, I know that when this code executes there always will be a value store so treat this Optional like a normal datatype. Well isn’t that nice? What would happen though if there isn’t a navigation controller to your view controller? If you suggestion that there always will be a value stored in navigationController was wrong? Your app will crash. Simple and ugly as that.


Saturday, June 27, 2015

Mobile Application Programing: iOS Lecture I

I am continuing with  Mobile programming iOS  with Matt Stoker I read some of  - Apple's Introduction to Swift.





He has developed MobileFinder/Studio

On to Week 1 demo and presentation 

Companies target iOS platforms before they do Android.

Xcode starts around the 43 minute mark

Starting with Single View Application








Right click project, show in finder

As you add files, the build phases tabs adds the files to compile:




Images.xcassets - different pixel densities

Info.plist - metatdata about the project


For now, remove story board file.


@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {


    var window: UIWindow?


class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        // Do any additional setup after loading the view, typically from a nib.
    }

    override func didReceiveMemoryWarning() {
        super.didReceiveMemoryWarning()
        // Dispose of any resources that can be recreated.

    }




        window = UIWindow(frame:UIScreen.mainScreen().bounds)
        window?.makeKeyAndVisible()
        window?.backgroundColor = UIColor.greenColor()
        
        
        let lightView1 = UIView()
        lightView1.frame = CGRectMake(40.0, 50.0, 200.0, 100.0)
        lightView1.backgroundColor = UIColor.blueColor()
        window?.addSubview(lightView1)
        
        
        
        let lightSwitch = UISwitch()
        lightSwitch.frame = CGRectMake(200.0, 250.0, 100.0, 200.0)

        window?.addSubview(lightSwitch)