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 loc...

2013-03-21 07:50:08

阅读数 617

评论数 1

From NSDate to string

- (void)updateViewDateLabel {     NSDateFormatter *formatter = [[NSDateFormatter alloc] init];     [formatter setDateStyle:NSDateFormatterMediu...

2013-03-19 16:35:56

阅读数 612

评论数 0

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 va...

2013-03-18 06:56:26

阅读数 490

评论数 0

Saving and Loading the Checklist Items

Saving - (NSString *)documentsDirectory {     NSArray *paths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YE...

2013-03-08 06:15:37

阅读数 386

评论数 0

Editing Existing Items in Checklist

- (void)configureCheckmarkForCell:(UITableViewCell *)cell                 withChecklistItem:(ChecklistsItem *)item {     UILabel *label = (UILabel...

2013-03-06 23:00:43

阅读数 456

评论数 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...

2013-03-06 21:08:43

阅读数 505

评论数 0

Reading Text from Text Field

pp105 property - (void)Done {     NSLog(@"Contents of the text field: %@",self.textField.text);          //close the window     [s...

2013-03-06 00:37:10

阅读数 503

评论数 0

Deleting rows in table view Checklist

//enable swipe-to-delete - (void)tableView:(UITableView *)tableView commitEditingStyle:(UITableViewCellEditingStyle)editingStyle forRowAtIndexPath:(N...

2013-03-05 14:16:29

阅读数 473

评论数 0

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 {     ...

2013-03-05 05:34:32

阅读数 621

评论数 0

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 task...

2013-03-01 02:19:53

阅读数 210

评论数 0

提示
确定要删除当前文章?
取消 删除
关闭
关闭