Go Back   MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread Display Modes
Old Jul 15, 2011, 01:05 AM   #1
macrumors 65816
Join Date: Sep 2006
Obj-C for Beginners book question

I started to read the the Objc-C for Absolute Beginners again and can to the first iPhone programming part. It was designed for Xcode 3 and I am trying to implement it for 4. It says to type in the instance variables and the 2 methods. Then open up IB. I jumped to IB first and built the buttons because I know I can just click drag the IBOutlets and IBActions.

The book told me to to call the project 'RandomNumber' and to write out the methods in the 'RandomNumberViewController.m' where we would link them. But when I drag buttons to the window in the RNVC .xib in the interface builder they fill the whole window area, weird thing happen? the Label snaps all the way to the left too? The program also created the RandomNumberAppDelegate.h and .m files and I can see the standard window in the .xib file.

Is the book out dated? Should I be using the AppDelegate instead of the custom class I created 'RandomNumberViewControler' to link all the labels and buttons, or does it matter?


Last edited by larswik; Jul 15, 2011 at 01:26 PM.
larswik is offline   0 Reply With Quote

MacRumors Forums > Apple Systems and Services > Programming > iPhone/iPad Programming

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Similar Threads
thread Thread Starter Forum Replies Last Post
Beginners question: Different files V-Appel iPhone/iPad Programming 0 Jan 18, 2014 05:30 AM
My question is about Font Book. macmithos Mac Basics and Help 3 Oct 19, 2013 05:01 AM
Address Book Question chattahoochee MacBook 2 Mar 17, 2013 04:52 PM
Address Book Question gravey92 OS X 3 Feb 20, 2013 10:45 AM
A beginners question about protocols. ObjectiveV iPhone/iPad Programming 1 Jul 12, 2012 10:23 PM

Forum Jump

All times are GMT -5. The time now is 01:02 AM.

Mac Rumors | Mac | iPhone | iPhone Game Reviews | iPhone Apps

Mobile Version | Fixed | Fluid | Fluid HD
Copyright 2002-2015, MacRumors.com, LLC