- 博客(6)
- 收藏
- 关注
原创 UIimageView添加点击事件
carImage.userInteractionEnabled = YES; UITapGestureRecognizer *carImageAction = [[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(carImageAction)]; [carImage addGesture
2015-09-10 11:17:17 641
转载 view透明度渐变
CABasicAnimation *theAnimation; theAnimation=[CABasicAnimation animationWithKeyPath:@"opacity"]; theAnimation.duration=1.0; theAnimation.fromValue=[NSNumber numberWithFloat:0.0];
2015-09-06 09:43:26 192
转载 view出现隐藏的动画效果
[UIView beginAnimations:@"begin" context:nil]; [UIView setAnimationDuration:1]; [UIView setAnimationCurve:UIViewAnimationCurveEaseOut]; [UIView setAnimationTransition:UIViewA
2015-09-06 09:35:58 300
转载 nsstring和int float的相互转换(转)
NSString *tempA = @"123"; NSString *tempB = @"456"; 1,字符串拼接 NSString *newString = [NSString stringWithFormat:@"%@%@",tempA,tempB]; 2,字符转int int intString = [newString int
2015-08-31 22:22:46 281
转载 AFnetworking接收数据可变的问题!
之前接收到json的数据之后无法修改。因为默认接收下来的数据类型是不可变的。比如nsdictionary或者nsarray 设置一下af接收的类型就可以了 (一下摘自网络) 我用的是AFNetworking2.5的,原来响应序列器设置为AFHTTPResponseSerializer *responseSerializer = [AFJSONResponseSerializer s
2015-08-31 21:43:48 255
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人