摘要: CGAffineTransformMakeRotation(旋转角度); 阅读全文
posted @ 2016-02-19 11:49 欢欢0919 阅读(122) 评论(0) 推荐(0)
摘要: 1居中layout.center = CGPointMake(SCREEN_WIDTH/2, SCREEN_HEIGHT/2);2,[[UIApplication sharedApplication].keyWindow addSubview:_hongbaoView];//在widows上面盖vi... 阅读全文
posted @ 2016-01-16 16:52 欢欢0919 阅读(203) 评论(0) 推荐(0)
摘要: - (CGRect)boundingRectWithSize:(CGSize)size options:(NSStringDrawingOptions)options context:(NSStringDrawingContext *)context2、、、 阅读全文
posted @ 2016-01-16 13:45 欢欢0919 阅读(121) 评论(0) 推荐(0)
摘要: 1,, [_OtherTextField addTarget:self action:@selector(changeTextfield) forControlEvents:UIControlEventEditingChanged];//监听数值改变; 2,, - (BOOL)textField:( 阅读全文
posted @ 2016-01-14 11:59 欢欢0919 阅读(96) 评论(0) 推荐(0)
摘要: 1 for(int i = 0; i < 12; i++) 2 { 3 button = [UIButton buttonWithType:UIButtonTypeCustom]; 4 button.frame = CGRectMake(width*(i%4... 阅读全文
posted @ 2016-01-11 17:03 欢欢0919 阅读(147) 评论(0) 推荐(0)
摘要: #pragma mark UItextFieldDelegate- (BOOL)textFieldShouldBeginEditing:(UITextField *)textField{ CGFloat height = self.view.frame.size.height; CGFl... 阅读全文
posted @ 2016-01-11 16:43 欢欢0919 阅读(122) 评论(0) 推荐(0)
摘要: NSArray *temArray = self.navigationController.viewControllers; for(TYLifeListViewController *temVC in temArray) { if ... 阅读全文
posted @ 2016-01-09 10:17 欢欢0919 阅读(145) 评论(0) 推荐(0)
摘要: 状态栏的字体为黑色:UIStatusBarStyleDefault状态栏的字体为白色:UIStatusBarStyleLightContent一、在info.plist中,将View controller-based status bar appearance设为NO状态栏字体的颜色只由下面的属性设... 阅读全文
posted @ 2016-01-04 16:22 欢欢0919 阅读(306) 评论(0) 推荐(0)
摘要: 1字典转JSON字符串//NSDictionary转换为Data NSData* jsonData = [NSJSONSerialization dataWithJSONObject:dicoptions:NSJSONWritingPrettyPrinted error:nil]; //Dat... 阅读全文
posted @ 2015-12-31 11:27 欢欢0919 阅读(102) 评论(0) 推荐(0)
摘要: NSArray *arr = [myMutableArr copy]; 阅读全文
posted @ 2015-12-29 10:17 欢欢0919 阅读(147) 评论(0) 推荐(0)