摘要: PropertiesalwaysBounceHorizontal //一个布尔值,决定是否弹跳总是出现水平滚动时达到结束内容的看法。默认值是NO 。@property(nonatomic) BOOL alwaysBounceHorizontal //如果这个属性被设置为YES而且bounces的值是... 阅读全文
posted @ 2016-01-25 03:39 北狐 阅读(304) 评论(0) 推荐(0) 编辑
摘要: 创建当前时间[cpp]view plaincopyprint?NSDate*date=[NSDatedate];从现在开始的24小时 NSTimeIntervala_day =24*60*60; NSDate*tomorrow = [NSDatedateWithTimeIntervalSin... 阅读全文
posted @ 2016-01-24 15:31 北狐 阅读(2215) 评论(0) 推荐(0) 编辑
摘要: 在使用日历使用中,获取星期的时候NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];[dateFormat setDateFormat:@"EEE"];得到的String 是 “Mon” “Wed”....如果想要得到中文 “周一... 阅读全文
posted @ 2016-01-24 14:01 北狐 阅读(383) 评论(0) 推荐(0) 编辑
摘要: 获取文字 button.currentTitle更多如下:@property(nullable, nonatomic,readonly,strong) NSString *currentTitle; // normal/highlighted/selected/disabled. can... 阅读全文
posted @ 2016-01-23 19:19 北狐 阅读(278) 评论(0) 推荐(0) 编辑
摘要: //将像素point由point所在视图转换到目标视图view中,返回在目标视图view中的像素值- (CGPoint)convertPoint:(CGPoint)point toView:(UIView *)view;//将像素point从view中转换到当前视图中,返回在当前视图中的像素值- (... 阅读全文
posted @ 2016-01-23 18:01 北狐 阅读(135) 评论(0) 推荐(0) 编辑
摘要: iOS5.0以后就开始可以使用ARC来代替之前的MRC。1.ARC中使用MRC的类。方法如下:在targets的build phases选项下Compile Sources下选择要不使用arc编译的文件,双击它,输入-fno-objc-arc即可2.MRC中使用ARC的类。方法如下:在targets... 阅读全文
posted @ 2016-01-23 17:59 北狐 阅读(189) 评论(0) 推荐(0) 编辑
摘要: 好几次用到了NSIndexPath,但是一直不知道怎么通过 row section这两个参数来初始化NSIndexPath *index = [NSIndexPath indexPathForRow:0 inSection:4];直接使用! 阅读全文
posted @ 2016-01-20 15:08 北狐 阅读(889) 评论(0) 推荐(0) 编辑
摘要: 汇总一下我的解决过程供参考,欢迎指正和补充。解决方案一:参考该博客:http://blog.sina.com.cn/s/blog_85c1f6a50100zxz1.html解决方案二:方案一中的步骤执行完成后不起作用,查看钥匙串中的证书是否有重复,如果有重复删除重复的证书,然后clean&bulid... 阅读全文
posted @ 2016-01-19 17:37 北狐 阅读(239) 评论(0) 推荐(0) 编辑
摘要: 0. enablesReturnKeyAutomatically默认为No,如果设置为Yes,文本框中没有输入任何字符的话,右下角的返回按钮是disabled的。1.borderStyle设置边框样式,只有设置了才会显示边框样式 text.borderStyle = UITextBorderSt... 阅读全文
posted @ 2016-01-17 13:00 北狐 阅读(303) 评论(0) 推荐(0) 编辑
摘要: NSString+URLEncoding.h#import @interface NSString(URLEncoding)- (NSString *)urlEncodeString;@endNSString+URLEncoding.m#import "NSString+URLEncoding.h"... 阅读全文
posted @ 2016-01-17 12:53 北狐 阅读(325) 评论(0) 推荐(0) 编辑