![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
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 · 405 阅读 · 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 · 578 阅读 · 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 · 275 阅读 · 0 评论 -
AboutView -- Close the second window
1 Set the Action in the second window2 in .m file, implement the - (IBAction)close method.pp 120// AboutViewController.m-(IBAction)close{ [self.presentingViewControllerdismiss原创 2013-02-27 21:15:20 · 304 阅读 · 0 评论 -
AboutView -- Create the second window in the app
1. create the second window by new file -> objective-C class (subclass ofViewController). then .xib, .h and .m2. set Action in the first view to trigger the second window - (IBAction)showI原创 2013-02-27 20:54:21 · 314 阅读 · 0 评论 -
Loads the local HTML file into the web view in the app
- (void)viewDidLoad{ [superviewDidLoad]; // Do any additional setup after loading the view from its nib. NSString *htmlFile = [[NSBundlemainBundle] pathForResource:@原创 2013-02-28 00:22:41 · 604 阅读 · 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 · 720 阅读 · 0 评论