摘要:
1.获取系统当前时间NSDate * senddate=[NSDate date];NSDateFormatter *dateformatter=[[NSDateFormatter alloc] init];[dateformatter setDateFormat:@"YYYY-MM-dd HH:m... 阅读全文
posted @ 2015-07-01 17:11
tongyuling
阅读(148)
评论(0)
推荐(0)
摘要:
1.从索引x位置开始取y个长度字节NSString * str=@"1234567890";NSString * str1=[str substringWithRange:NSMakeRange(x, y)];2.需要个x位的字符串,当前获取的字符串y不够x位,在前面补0的方法NSString * ... 阅读全文
posted @ 2015-07-01 17:00
tongyuling
阅读(278)
评论(0)
推荐(0)
摘要:
32位的MD5加密方法- (NSString *)getMd5_32Bit_String:(NSString *)srcString{ const char * cStr = [srcString UTF8String]; unsigned char digest[CC_MD5_DIGEST_... 阅读全文
posted @ 2015-07-01 16:47
tongyuling
阅读(150)
评论(0)
推荐(0)
摘要:
整理了一下collectionView:1.UICollectionViewLayoutUICollectionViewLayout可以说是UICollectionView的大脑和中枢,它负责了将各个cell、Supplementary View和Decoration Views进行组织,为它们设定... 阅读全文
posted @ 2015-07-01 16:26
tongyuling
阅读(1495)
评论(0)
推荐(0)
摘要:
kvo听说过,之前一直没怎么用,最近用到啦,就学习了一下。demo介绍:有俩个viewcontroller(a和b),b里有个定时器和一个button,b push到a,a里的textview和label来展示b里属性str变化的值。代码: 注:在哪add就在哪remove,viewDidLoad... 阅读全文
posted @ 2015-07-01 16:02
tongyuling
阅读(189)
评论(0)
推荐(0)
摘要:
UIView的提供了这个方法:- (UIView *)hitTest:(CGPoint)point withEvent:(UIEvent *)event;1.创建CustomView继承自UIView :CustomView.h@property (strong,nonatomic)NSArray ... 阅读全文
posted @ 2015-07-01 15:39
tongyuling
阅读(1171)
评论(0)
推荐(0)

浙公网安备 33010602011771号