上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页

2015年1月31日

iOS section 随tableview一起滚动

摘要: @interface YGSectionHeaderView : UIView@property NSUInteger section;@property (nonatomic, weak) UITableView *tableView;@end@implementation YGSectionHe... 阅读全文

posted @ 2015-01-31 21:51 Hai_阔天空 阅读(346) 评论(0) 推荐(0)

2015年1月25日

iOS 导航栏rgb值与设置的有差异

摘要: 转:http://b2cloud.com.au/how-to-guides/bar-color-calculator-for-ios7-and-ios8/计算:http://htmlpreview.github.io/?https://github.com/tparry/Miscellaneous/... 阅读全文

posted @ 2015-01-25 16:08 Hai_阔天空 阅读(272) 评论(0) 推荐(0)

iOS 去掉navgationbar 底部线条

摘要: [[UINavigationBar appearance] setBarStyle:UIBarStyleBlackTranslucent]; [[UINavigationBar appearance] setBackgroundImage:[UIImage Color:kBackgroundColo 阅读全文

posted @ 2015-01-25 15:47 Hai_阔天空 阅读(287) 评论(0) 推荐(0)

iOS设置导航栏透明度

摘要: As I support Colin's answer, I want to give you an additional hint to customize the appearance of an UINavigationBar including the alpha.The trick is ... 阅读全文

posted @ 2015-01-25 15:43 Hai_阔天空 阅读(1580) 评论(0) 推荐(0)

2015年1月23日

升级到XCode6后,iOS8里设置tableview的setSeparatorInset:UIEdgeInsetsZero不起作用的解决办法

摘要: 转:http://www.asklinux.com/app/ios/286#我们在使用tableview时会发现分割线的左边会短一些,通常可以使用setSeparatorInset:UIEdgeInsetsZero 来解决。但是升级到XCode6之后,在iOS8里发现没有效果。下面给出解决办法:首先... 阅读全文

posted @ 2015-01-23 18:12 Hai_阔天空 阅读(315) 评论(0) 推荐(0)

2015年1月13日

iOS UITextView 展示html

摘要: NSString *htmlString = @"HeaderSubheaderSome text"; NSAttributedString *attributedString = [[NSAttributedString alloc] initWithData:[htmlString dat... 阅读全文

posted @ 2015-01-13 10:20 Hai_阔天空 阅读(424) 评论(0) 推荐(0)

2014年12月29日

Xcode6与Xcode5中沙盒的变动以及偏好设置目录的变动

摘要: http://blog.csdn.net/tmweipan/article/details/397619391、Xcode6模拟器路径与Xcode5模拟器路径对比:(1)Xcode5中模拟器路径为:/Users/用户名/Library/Application Support/iPhone Simul... 阅读全文

posted @ 2014-12-29 17:53 Hai_阔天空 阅读(432) 评论(0) 推荐(0)

2014年12月19日

objective-c static变量的使用总结

摘要: 在java中,我们经常使用的是单例模式,这些设计模式在ios开发中也比较常用,最近也在考虑使用在ios开发中使用单例模式在objective-c中,需要在.m文件里面定义个static变量来表示全局变量(和java里面的类变量类似,但是在objective-c中,static变量只是在编译时候进行初... 阅读全文

posted @ 2014-12-19 11:11 Hai_阔天空 阅读(185) 评论(0) 推荐(0)

2014年12月9日

iOS nsstring 截取字符前后字符串

摘要: // Str = @"PEK_LHR"NSRange range = [trafficeStr rangeOfString:@"_" options:NSBackwardsSearch];from = [trafficeStr substringToIndex:range.location];to ... 阅读全文

posted @ 2014-12-09 14:18 Hai_阔天空 阅读(960) 评论(0) 推荐(0)

2014年12月4日

iOS 计算时间差

摘要: /** * 计算指定时间与当前的时间差 * @param compareDate 某一指定时间 * @return 多少(秒or分or天or月or年)+前 (比如,3天前、10分钟前) */+(NSString *) compareCurrentTime:(NSDate*) compareD... 阅读全文

posted @ 2014-12-04 20:07 Hai_阔天空 阅读(538) 评论(0) 推荐(0)

上一页 1 ··· 16 17 18 19 20 21 22 23 24 ··· 39 下一页

导航