- 博客(10)
- 收藏
- 关注
原创 MyLocations
MyLocations, an app that uses Core Location framework to obtain GPS coordinations for the user's whereabout, Map Kit to show the user's favourite locations on a map, the iPhone's camera and photo libr
2013-03-21 07:50:08 754 1
原创 From NSDate to string
- (void)updateViewDateLabel { NSDateFormatter *formatter = [[NSDateFormatter alloc] init]; [formatter setDateStyle:NSDateFormatterMediumStyle]; [formatter setTimeStyle:NSDateForma
2013-03-19 16:35:56 726
原创 Primitive values and Objects
Dictionaries cannot contain primitive values such as int and BOOL, only objects. The same thing goes for arrays. If you want to put an int or BOOL values into a dictionary or array, you have to conver
2013-03-18 06:56:26 604
原创 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 477
原创 Editing Existing Items in Checklist
- (void)configureCheckmarkForCell:(UITableViewCell *)cell withChecklistItem:(ChecklistsItem *)item { UILabel *label = (UILabel *)[cell viewWithTag:1001]; label.text
2013-03-06 23:00:43 573
原创 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 601
原创 Reading Text from Text Field
pp105 property - (void)Done { NSLog(@"Contents of the text field: %@",self.textField.text); //close the window [self.presentingViewControllerdismissViewControllerAnimated:YES
2013-03-06 00:37:10 624
原创 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 587
原创 Adding new items to the Checklist
pp 67 Add a navigation controller Open 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 734
原创 Delegates in table view
The delegation pattern The concept of delegation is very common in iOS. An object will often rely on another object to help it out with certain tasks. This separation of concerns keeps the system sim
2013-03-01 02:19:53 290
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人