Add a simple crossfade

Add a simple crossfade after the Start Over button is pressed, so the transition back to round one  won't seem so abrupt. pp146 #import ...

2013-02-28 01:04:35

阅读数 261

评论数 0

Loads the local HTML file into the web view in the app

- (void)viewDidLoad {     [super viewDidLoad];     // Do any additional setup after loading the view from its nib.          NSString *h...

2013-02-28 00:22:41

阅读数 426

评论数 0

AboutView -- Close the second window

1 Set the Action in the second window 2 in .m file, implement the - (IBAction)close method. pp 120 // AboutViewController.m -(IBAction)clos...

2013-02-27 21:15:20

阅读数 185

评论数 0

AboutView -- Create the second window in the app

1. create the second window by new file -> objective-C class (subclass of ViewController). then .xib, .h and .m 2. set Action in the first view ...

2013-02-27 20:54:21

阅读数 220

评论数 0

Action methods vs. normal methods

The difference between an action method and a regular method: Nothing. An action method is really just the same as any other method. The only specia...

2013-02-27 15:47:28

阅读数 274

评论数 0

Let the label display variable values on screen

To do that, we need to accomplish two things: 1 Create a reference to the label so we can send it messages. 2 Give the label new text to display ...

2013-02-27 15:39:17

阅读数 230

评论数 0

Generating the random number

You can't really get a computer to generate numbers that are truly random and unpredictable, but we can employ a so-called pseudo-random generator to...

2013-02-27 12:17:21

阅读数 256

评论数 0

Properties vs instance variables

Properties and instance variables have a lot in common. In fact, when you use @synthesize to create the property, it is "backed" by an ivar...

2013-02-27 12:03:04

阅读数 263

评论数 0

Properties and Outlets

These three steps are necessary for just about any property you add to the view controller if that property refers to a view in the nib: 1 add @prop...

2013-02-27 11:47:06

阅读数 206

评论数 0

Converting the app to landscape

To convert our app from portrait into landscape, we have to do three things: 1 Make the view from BullsEyeViewController.xib landscape instead of po...

2013-02-26 23:09:54

阅读数 373

评论数 0


- (IBAction)showAlert { UIAlertView *alertView = [[UIAlertView alloc] initWithTitle:@"Hello,World" ...

2013-02-26 20:09:33

阅读数 294

评论数 0

取消 删除