Developing for iPhone

Learn how to create and develop iPhone applications from scratch.

Tagged with ‘outlet’

Tutorial 3-3: More Interface Connections

Posted by Henry On May - 2 - 2009 3 COMMENTS

Go ahead and open the “HelloiPhone” project from the previous tutorial. Remember the slider we added to the interface? Today we will give it some functionality.
Open “HelloiPhoneViewController.h” and edit it to look like this:

#import <uikit /UIKit.h>
 
@interface HelloiPhoneViewController : UIViewController {
	IBOutlet UILabel *sliderValue;
}
 
@property (nonatomic, retain) UILabel *sliderValue;
 
-(IBAction) sliderChanged: (id) s;
-(IBAction) goButton;
 
@end
 
</uikit>

Read the rest of this entry »