上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页
摘要: customScrollView.h#import @interface customScrollView : UIScrollView@endcustomScrollView.m//传递touch事件- (void)touchesBegan:(NSSet*)touches withEvent:(U... 阅读全文
posted @ 2014-05-25 15:47 菜鸟程序猿 阅读(191) 评论(0) 推荐(0) 编辑
摘要: - (void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText;{ NSLog(@"textDidChange---%@",searchBar.text); if (searchBar.tex... 阅读全文
posted @ 2014-05-25 15:45 菜鸟程序猿 阅读(1710) 评论(0) 推荐(0) 编辑
摘要: - (UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath{ returnUITableViewCellEdit... 阅读全文
posted @ 2014-04-30 14:27 菜鸟程序猿 阅读(447) 评论(0) 推荐(0) 编辑
摘要: + (instantClass *)sharedClient {static instantClass *_sharedClient = nil;static dispatch_once_t onceToken;dispatch_once(&onceToken, ^{_sharedClient = ... 阅读全文
posted @ 2014-04-29 10:31 菜鸟程序猿 阅读(208) 评论(0) 推荐(0) 编辑
摘要: + (SCLocationController *)sharedController{ static SCLocationController *sharedController = nil; static dispatch_once_t onceToken; dispatc... 阅读全文
posted @ 2014-04-29 10:16 菜鸟程序猿 阅读(342) 评论(0) 推荐(0) 编辑
摘要: - (void)copyFileFromResourceTOSandbox{ //文件类型 NSString * docPath = [[NSBundle mainBundle] pathForResource:@"area" ofType:@"db"]; // 沙... 阅读全文
posted @ 2014-04-23 17:13 菜鸟程序猿 阅读(1682) 评论(0) 推荐(0) 编辑
摘要: 一、首先。在Info.plist里面添加Key:Required background modesValue:App registers for location updates- (void)scheduledTimer{ UIApplication* app = [UIApplication sharedApplication]; self.backgroundTask = [app beginBackgroundTaskWithExpirationHandler:^{ NSLog(@"applicationD in Background"); }];... 阅读全文
posted @ 2014-04-01 09:44 菜鸟程序猿 阅读(196) 评论(0) 推荐(0) 编辑
摘要: #import MFMessageComposeViewControllerDelegate#pragma mark - 调用ios系统短信发送模块-(void)shareUseSMSWithMessage:(NSString *)message{ Class messageClass = (NSClassFromString(@"MFMessageComposeViewController")); if (messageClass != nil) { // Check whether the current device is configured for send... 阅读全文
posted @ 2014-03-30 14:33 菜鸟程序猿 阅读(334) 评论(0) 推荐(0) 编辑
摘要: // 触摸背景关闭软键盘- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event{ [super touchesBegan:touches withEvent:event]; [self.view endEditing:YES];} 阅读全文
posted @ 2014-03-28 16:05 菜鸟程序猿 阅读(142) 评论(0) 推荐(0) 编辑
摘要: if ([[[UIDevice currentDevice]systemVersion]floatValue] >= 7.0) { [[UINavigationBar appearance] setBarTintColor:[UIColor colorWithHexString:@"0b6aff"]]; } else { self.navigationBar.tintColor = [UIColor colorWithHexString:@"0b6aff"]; } 阅读全文
posted @ 2014-03-28 10:36 菜鸟程序猿 阅读(218) 评论(0) 推荐(0) 编辑
上一页 1 ··· 6 7 8 9 10 11 12 13 14 ··· 19 下一页