Xcode Presentation
Download
Report
Transcript Xcode Presentation
Xcode Presentation
Tom Pletzke
Creating App from template
Launch Xcode
Select Tabbed Application
Important Files
AppDelegate
MainStoryBoard
ViewController
First.png
Supporting Files
Frameworks
Test the Template
Select Product in Menu, then Edit Scheme to
change test device.
Add Icon
Adding 57x57 icon
Adding 114x114 retina icon
Creating icons from images on internet not
recommended
Add Icon
Drag and drop icons over App Icons squares
Remove app from simulator
Run app in simulator to verify new icons
Add Icon
Remove gloss effect by setting Icon already
includes gloss effect to YES
Add A Table View Controller
Use Objects on Utilities View and drag Table
View Controller into storyboard
Add A Table View Controller
Embed in Navigation Controller
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
Add Program Files For Table View
Select File, New, New File from menu
Select UIViewController subclass
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
Add Program Files For Table View
Create in group Test
Files will appear Test group
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
Name The Table View
Double click the table bar and type in Third
Table
Change Table View to Subtitles
Click on table cell in storyboard and change
style to Subtitle
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
Test Run of Table View With Text
Select Run from Menu under Product
Errors and Warnings
Warnings and Errors can be found in the
issue navigator and the number is displayed
under project name at the top
Add Database Framework
Select your
project on the
project
navigator
Select the
summary tab
and scroll to
Linked
frameworks
and Libraries
Add Database Framework
Click the + sign and select
CoreData.framework and click Add
Add Database Framework
On the Project Navigator drag the
CoreData.framework under the Frameworks
group
Add Database
Select File, New File
Choose Data Model and click Next
Add Database
Type TestDataModel in Save As and click
Create
Add Entity to Database
Data Model screen is displayed
Select Add Entity
Add Entity to Database
Enter MyTable for entity name
Add Attribute to Entity
Click + under Attributes and type strTest and
select String from the Type selection box
Xcode Presentation
Tom Pletzke
Questions