Join Todd Perkins for an in-depth discussion in this video Using pointer variables, part of Programming for Non-Programmers: iOS 7.
- View Offline
- Exercise Files
…I mentioned earlier that there are primitive and pointer variables.…We've already talked about primitive variables which…are numbers and true or false values generally.…Pointer values apply to pretty much anything else including text.…So, let's look at how pointer works.…In our project, under Programming Basics, I'm working in view controller dot m, so…single-click on that file to work on the same file that I'm working in.…In the view did load function, right under…the comment, I'm going to create a string variable.…
A string is a text value.…In objective C, a string is created by typing NSString.…Now the first three letters are capitalized.…As I type NSS, I see that NSString is highlighted in the codentine window.…So I'm going to press return on my keyboard to complete that code for me.…After that I'm going to type a space, and then I'm going to…type an asterisk and the name of my variable, which will be called name.…Now I'll set a value to my variable using an equal sign.…
Setting a value to an NSString valuable requires quotes and an at symbol.…
If you find you'd like to learn more, see iOS App Development Essential Training, Foundations of Programming: Fundamentals, or any of the other programming courses in our library.
- Installing Xcode
- Creating an Xcode project
- Configuring the iOS Simulator
- Understanding variables
- Connecting visual objects to variables
- Understanding functions, methods, and selectors
- Connecting a button to a function
- Using conditional statements
- Setting up the user interface
- Connecting code elements to build an app
Skill Level Beginner
1. Setting Up Your Coding Environment
Creating an Xcode project1m 55s
2. Programming Building Blocks: Variables
3. Programming Building Blocks: Functions
4. Programming Building Blocks: Conditional Statements
Using conditional statements5m 21s
5. Building Your First Full Application
- Mark as unwatched
- Mark all as unwatched
Are you sure you want to mark all the videos in this course as unwatched?
This will not affect your course history, your reports, or your certificates of completion for this course.Cancel
Take notes with your new membership!
Type in the entry box, then click Enter to save your note.
1:30Press on any video thumbnail to jump immediately to the timecode shown.
Notes are saved with you account but can also be exported as plain text, MS Word, PDF, Google Doc, or Evernote.