iOS
文章平均质量分 66
jason_cheung
这个作者很懒,什么都没留下…
展开
-
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论 -
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 阅读 · 0 评论