28
Xcode Presentation Tom Pletzke

Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Embed Size (px)

Citation preview

Page 1: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Xcode Presentation

Tom Pletzke

Page 2: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Creating App from template

Launch Xcode Select Tabbed Application

Page 3: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Important Files

AppDelegate MainStoryBoard ViewController First.png Supporting Files Frameworks

Page 4: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Test the Template

Select Product in Menu, then Edit Scheme to change test device.

Page 5: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Icon

Adding 57x57 icon Adding 114x114 retina icon Creating icons from images on internet not

recommended

Page 6: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Icon Drag and drop icons over App Icons squares Remove app from simulator Run app in simulator to verify new icons

Page 7: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Icon

Remove gloss effect by setting Icon already includes gloss effect to YES

Page 8: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add A Table View Controller

Use Objects on Utilities View and drag Table View Controller into storyboard

Page 9: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add A Table View Controller

Embed in Navigation Controller

Page 10: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add A Table View Controller

Click Tab Bar Controller, hold the Ctrl key and drag to Navigation Controller and release

Double click item text under icon and change name to Third

Page 11: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Program Files For Table View

Select File, New, New File from menu Select UIViewController subclass

Page 12: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Program Files For Table View

Name the file ThirdViewController Select Subclass of UITableViewController Make sure boxes for Targeted for iPad and

With XIB for user interface are not checked

Page 13: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Program Files For Table View

Create in group Test Files will appear Test group

Page 14: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Assign Table Programs to Table View Controller

Select table view in storyboard

Select the identity inspector on Utility view

Under custom class select class box and type in ThirdViewController and press enter

Page 15: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Name The Table View

Double click the table bar and type in Third Table

Page 16: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Change Table View to Subtitles

Click on table cell in storyboard and change style to Subtitle

Page 17: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Adding Text In The Table View

Change the CellIdentifier string to the name you gave it in the storyboard: MyCell

Add cell.textLabel.text and cell.detailTextLabel.text in the configure the cell area

Page 18: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Test Run of Table View With Text

Select Run from Menu under Product

Page 19: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Errors and Warnings

Warnings and Errors can be found in the issue navigator and the number is displayed under project name at the top

Page 20: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Database Framework

Select your project on the project navigator

Select the summary tab and scroll to Linked frameworks and Libraries

Page 21: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Database Framework

Click the + sign and select CoreData.framework and click Add

Page 22: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Database Framework

On the Project Navigator drag the CoreData.framework under the Frameworks group

Page 23: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Database

Select File, New File Choose Data Model and click Next

Page 24: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Database

Type TestDataModel in Save As and click Create

Page 25: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Entity to Database

Data Model screen is displayed Select Add Entity

Page 26: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Entity to Database

Enter MyTable for entity name

Page 27: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Add Attribute to Entity

Click + under Attributes and type strTest and select String from the Type selection box

Page 28: Xcode Presentation Tom Pletzke. Creating App from template Launch Xcode Select Tabbed Application

Xcode Presentation

Tom Pletzke

Questions