摘要:
1.NSTimeInterval 时间间隔double NSTimeInterval now = [NSDate timeIntervalSinceReferenceDate]; //2001/1/1时间以秒数的形式表示 NSLog(@"double=%f",now);//444907... 阅读全文
摘要:
1.#import "ViewController.h"@interface ViewController (){ UIDynamicAnimator *_animator;//力学动画 UIGravityBehavior *_gravity;//重力行为 UICollis... 阅读全文
摘要:
1.添加系统高斯模糊UIImageView *imageView = [[UIImageView alloc]initWithImage:[UIImage imageNamed:@"IMG_0004"]]; imageView.frame = CGRectMake(0, 0,320, 720)... 阅读全文
摘要:
prat1 storyboard情况下进行约束布局 scrollView比较特殊,因为它有个contentSize的属性。那么在遇到scrollView时,怎么使用Autolayout呢。其实关键点就一点:ScrollView的contentSize的大小是由其subview的constraints... 阅读全文
摘要:
1.ios7动态变化字体大小self.titleLabel.font = [UIFont preferredFontForTextStyle:UIFontTextStyleCaption2]; self.ssubLabel.font = [UIFont preferredFontForText... 阅读全文