- 博客(8)
- 资源 (1)
- 收藏
- 关注
原创 Core Data : update record
TableViewController.m - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Navigation logic may go here. Create and push another view controller.
2012-05-29 14:56:54
736
原创 CoreData: Deleting object
1.Adding Edit button on the left of the NavigationBar - (void)viewDidLoad { [super viewDidLoad]; // Uncomment the following line to preserve selection between presentations. // self.clear
2012-05-29 14:52:00
590
原创 How to use NSNotification in iOS?
1. Adding an observer [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(loadDataWithNotification:) name:@"Test" object:nil]; 2. Adding the observe method: - (void)loadDataW
2012-05-28 22:01:45
496
原创 How can you decide to use UINavigationBar, UIToolbar and UITabbar
The UINavigationBar class implements a control for navigating hierarchical content. It’s a bar, typically displayed at the top of the screen, containing buttons for navigating up and down a hierarch
2012-05-28 09:27:13
1777
原创 How to use insert or retrieve data by using Core Data in iOS
//inserting people data NSManagedObjectContext *context=self.managedObjectContext; People *people=[NSEntityDescription insertNewObjectForEntityForName:@"People" inManagedObjectContext:context]
2012-05-28 00:01:13
542
原创 How to test the Internet state
This class is used to test the Internet state. The source code can be downloaded from Apple by this link. - (BOOL)networkCheck{ Reachability *curReach = [[Reachability reachabilityForInterne
2012-05-27 11:24:20
265
原创 Adding Animation between two views
- (IBAction)showSecondViewController:(id)sender; { if (self.secondController==nil) { self.secondController=[[SecondViewController alloc] initWithNibName:@"SecondViewController" bundle:nil]
2012-05-20 23:35:47
265
原创 How to use UINavigationController
Adding a navigationController by code, and add UINavigationBarItem on both left and right hand sides. FirstViewControllerDelegate.h #import #import "XDreamViewControllerViewController.h" @interface
2012-05-20 23:32:25
178
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人