摘要:
1. 自定义NavigationController:@interface CustomNavigationController : UINavigationController2. 重写Push方法, 拦截Push进来的控制器:- (void)pushViewController:(UIViewC... 阅读全文
摘要:
通过Identifier标记不同的Cell,实现不同Cell的重用:- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ if (index... 阅读全文
摘要:
1. 调用CLLocationManager的authorizationStatus方法可获取应用当前定位授权状态:CLAuthorizationStatus status = [CLLocationManager authorizationStatus];2.授权状态回调处理:用户授权状态:kCL... 阅读全文
摘要:
1. iOS 8角标显示须要用户授权,可在应用启动时请求授权: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { ... 阅读全文