![](https://img-blog.csdnimg.cn/20201014180756913.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Checklists
文章平均质量分 59
chuanyituoku
这个作者很懒,什么都没留下…
展开
-
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 评论 -
Reading Text from Text Field
pp105property- (void)Done{ NSLog(@"Contents of the text field: %@",self.textField.text); //close the window [self.presentingViewControllerdismissViewControllerAnimated:YES原创 2013-03-06 00:37:10 · 615 阅读 · 0 评论 -
Editing Existing Items in Checklist
- (void)configureCheckmarkForCell:(UITableViewCell *)cell withChecklistItem:(ChecklistsItem *)item{ UILabel *label = (UILabel *)[cellviewWithTag:1001]; label.text原创 2013-03-06 23:00:43 · 565 阅读 · 0 评论 -
Adding new items to the Checklist
pp 67Add a navigation controllerOpen a new Add item screen that let the user type the text for items.- (IBAction)addItem{ int newRowIndex = [itemscount]; //Create原创 2013-03-05 05:34:32 · 728 阅读 · 0 评论 -
Protocols, delegate
In Objective-C, protocol is simply a name for the groups of methods. A protocol doesn't have instance variables, and it doesn't implement any methods it declares. It just says, any object that conform原创 2013-03-06 21:08:43 · 594 阅读 · 0 评论 -
Saving and Loading the Checklist Items
Saving- (NSString *)documentsDirectory{ NSArray *paths =NSSearchPathForDirectoriesInDomains(NSDocumentDirectory,NSUserDomainMask, YES);//asd NSString *documentsDirectory = [pat原创 2013-03-08 06:15:37 · 472 阅读 · 0 评论 -
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 评论 -
Checklists
This is the second appHow it looks like pp2 : a to-do listThe app lets you organise to-do items into lists and then check off these items once you're done with them. You can set a reminder on a to原创 2013-02-28 22:19:40 · 459 阅读 · 0 评论