上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 36 下一页
摘要: iOS 状态栏和导航条配置一:隐藏: [self.navigationController setNavigationBarHidden:YES animated:YES]; [[UIApplication sharedApplication] setStatusBarStyle:UIStatusBarStyleDefault animated:YES];二:状态值参考:http://beyondvincent.com/blog/2013/11/03/120-customize-navigation-status-bar-ios-7/http://book.51cto.com/ar... 阅读全文
posted @ 2014-01-26 15:43 cocoajin 阅读(268) 评论(0) 推荐(1)
摘要: iOS 去掉tabaar上面的 一条线利用一个 1像素高的图片[[UITabBar appearance] setShadowImage:[UIImage imageNamed:@"transparentShadow.png"]];参考:http://stackoverflow.com/questions/14371343/ios-uitabbar-remove-top-shadow-gradient-line 阅读全文
posted @ 2014-01-24 16:42 cocoajin 阅读(557) 评论(0) 推荐(0)
摘要: iOS子线程操作检测版本更新,有新版本通知用户更新 CheckVersion一:如何使用:#import "CheckVersion.h" //输入你的app在appStore的 id [CheckVersion check_APP_UPDATE_WITH_APPID:@"350962117"];上述代码写完就可以了,当用户打开app检测到新版本时,为通知用户,更新,并显示最新版本的更新内容; 二:CheckVersion 类//// CheckVersion.h// TopProgressView//// Created by cocoajin on 阅读全文
posted @ 2014-01-21 11:02 cocoajin 阅读(1330) 评论(0) 推荐(0)
摘要: iOS arc和非arc 适用 宏1:使用宏+ (void)showAlertWithMessage:(NSString *)messages{ dispatch_async(dispatch_get_main_queue(), ^{ UIAlertView *alert = [[UIAlertView alloc]initWithTitle:@"版本更新提示" message:messages delegate:nil cancelButtonTitle:@"确定" otherButtonTitles:nil, nil]; [alert show]; 阅读全文
posted @ 2014-01-20 11:31 cocoajin 阅读(592) 评论(0) 推荐(0)
摘要: synthesis-of-weak-property-only-allowed-in-arc-or-gc-mode ARC属性错误提示:1:确认你的项目是 ARC环境;2:如果 ARC下出现上面的提示,那找到 项目里面 weak 的属性,改为 assign参考:http://stackoverflow.com/questions/18936209/synthesize-of-weak-property-is-only-allowed-in-arc-or-gc-mode-with-first-comp 阅读全文
posted @ 2014-01-18 13:19 cocoajin 阅读(535) 评论(0) 推荐(0)
摘要: iOS 本地通知 操作1:配置通知:然后退出程序;UILocalNotification *localNotif = [[UILocalNotification alloc] init];localNotif.fireDate = date; // date after 10 sec from nowlocalNotif.timeZone = [NSTimeZone defaultTimeZone];// Notification detailslocalNotif.alertBody = text; // text of you that you have fetched// Set t.. 阅读全文
posted @ 2014-01-18 11:20 cocoajin 阅读(301) 评论(0) 推荐(0)
摘要: iOS tabbar 图片,最佳大小方式文档大小 30 *30retaina 60 *60最佳大小 48 *32参考:http://stackoverflow.com/questions/151746/iphone-tab-bar-item-image-resolution 阅读全文
posted @ 2014-01-18 10:29 cocoajin 阅读(2247) 评论(0) 推荐(0)
摘要: iOS 检查app版本更新操作1:获取本地安装的版本信息:[NSString stringWithFormat:@"Version %@ (%@)", [[[NSBundle mainBundle] infoDictionary] objectForKey:@"CFBundleVersion"], kRevisionNumber]2:根据appStore上的 appid查询 appStore上的版本信息: 调用接口:http://itunes.apple.com/lookup?id=350962117 id 是app的 在appStore的id 解析上述 阅读全文
posted @ 2014-01-17 14:14 cocoajin 阅读(2026) 评论(0) 推荐(0)
摘要: UISegmentedControl 修改字体大小 和 颜色大小: UIFont *font = [UIFont boldSystemFontOfSize:14.0f]; NSDictionary *attributes = [NSDictionary dictionaryWithObject:font forKey:UITextAttributeFont]; [sortListSeg setTitleTextAttributes:attributes ... 阅读全文
posted @ 2014-01-16 21:36 cocoajin 阅读(10128) 评论(0) 推荐(0)
摘要: UITableView Scroll to top 手动设置tableview 滚动到 顶部[mainTableView scrollRectToVisible:CGRectMake(0,0,1,1) animated:YES];[mainTableView setContentOffset:CGPointZero animated:YES];参考:http://stackoverflow.com/questions/724892/uitableview-scroll-to-the-tophttp://stackoverflow.com/questions/19243177/how-to-sc 阅读全文
posted @ 2014-01-16 09:09 cocoajin 阅读(2735) 评论(0) 推荐(0)
上一页 1 ··· 15 16 17 18 19 20 21 22 23 ··· 36 下一页