Views
文章平均质量分 51
chuanyituoku
这个作者很懒,什么都没留下…
展开
-
data source
- (NSInteger)tableView:(UITableView *)tableView numberOfRowsInSection:(NSInteger)section { return 1; } - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *转载 2013-02-28 23:15:34 · 397 阅读 · 0 评论 -
Deleting rows in table view Checklist
//enable swipe-to-delete - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(NSIndexPath *)indexPath { [items removeObjectAtI原创 2013-03-05 14:16:29 · 571 阅读 · 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 @property to the .h file, 2 connect the outlet in Inter原创 2013-02-27 11:47:06 · 268 阅读 · 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)close { [self.presentingViewController dismiss原创 2013-02-27 21:15:20 · 298 阅读 · 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 to trigger the second window - (IBAction)showI原创 2013-02-27 20:54:21 · 311 阅读 · 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 *htmlFile = [[NSBundle mainBundle] pathForResource:@原创 2013-02-28 00:22:41 · 585 阅读 · 0 评论 -
How View Controllers Present Other View Controllers
When you present a modal view controller, the system creates a relationship between the view controller that did the presenting and the view controller that was presented. Specifically, the view contr原创 2014-02-01 16:50:03 · 718 阅读 · 0 评论