CS185c
Chris Pollett
Feb 6, 2012
-(void)dealloc { /* call release on instance variable; then... */ [super dealloc]; }
[myObj retain]; //increases myObj's reference count by 1. [myObj release]; // decreases myObj's reference count by 1.
Which of the following is true?
<!DOCTYPE html> <html> <head> <title>Hello HTML 5</title> <meta name="viewport" content="width=device-width, initial-scale=1"> <link rel="stylesheet" href="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.css" /> <script src="http://code.jquery.com/jquery-1.6.4.min.js"></script> <script src="http://code.jquery.com/mobile/1.0.1/jquery.mobile-1.0.1.min.js"></script> </head> <body> <div data-role="page"> <div data-role="header"> <h1>My First HTML APP!</h1> </div><!-- /header --> <div data-role="content"> <p>This is an HTML 5 app.</p> </div><!-- /content --> </div><!-- /page --> </body> </html>
span { background-color:red; font-size:20pt; }
<a href="http://www.link-to-somewhere.com/">Link Text</a>
<ul data-role="listview" data-inset="true" data-filter="true"> <li><a href="#">Red</a></li> <li><a href="#">Green</a></li> <li><a href="#">Blue</a></li> <li><a href="#">Violet</a></li> <li><a href="#">Ultra-Violet</a></li> </ul>
// // SecondProjectViewController.h // SecondProject // // Created by Chris Pollett on 8/26/09. // Copyright San Jose State University 2009. All rights reserved. // #import <UIKit/UIKit.h> @interface SecondProjectViewController : UIViewController { } @end
#import <UIKit/UIKit.h> @interface SecondProjectViewController : UIViewController { IBOutlet UILabel *statusText; } @property (retain, nonatomic) UILabel *statusText; -(IBAction) buttonPressed:(id)sender; @end
UILabel *tmp = myController.statusText; muController.statusText = someLabel;