摘要: #pragma mark - 创建旋转动画提示- (CustomView *)initIndicatorViewWithTitle:(NSString *)title{ self = [super initWithFrame:[[UIScreen mainScreen] bounds]]; ... 阅读全文
posted @ 2014-09-13 21:34 2014_4_30 阅读(108) 评论(0) 推荐(0)
摘要: #pragma mark - 将图片转为二进制+ (NSString *)image2binaryWithImage:(UIImage *)image imageName:(NSString *)imgName{ //获取图片的二进制数据 NSData *imageData = UIIm... 阅读全文
posted @ 2014-09-13 21:27 2014_4_30 阅读(569) 评论(0) 推荐(0)
摘要: #pragma mark - 获取按尺寸压缩过的新图片+ (UIImage *)getNewImageWithImage:(UIImage *)image size:(CGFloat)tempSize{ //获取图片的宽高 CGSize imageSize = image.size; ... 阅读全文
posted @ 2014-09-13 21:25 2014_4_30 阅读(209) 评论(0) 推荐(0)
摘要: 从设备图库返回到scrollView时,scrollView会下移20像素,解决办法:self.edgesForExtendedLayout = UIRectEdgeNone; 如果加入此代码导致其他控件无法点击,可设置为其他值。tableView下移好像也可以用此方法。 阅读全文
posted @ 2014-09-13 21:15 2014_4_30 阅读(973) 评论(0) 推荐(0)
摘要: UIActionSheet *actionSheet = [[UIActionSheet alloc]initWithTitle:@"选择图片" delegate:(self) cancelButtonTitle:@"取消" destructiveButtonTitle:nil otherB... 阅读全文
posted @ 2014-09-13 21:12 2014_4_30 阅读(250) 评论(0) 推荐(0)
摘要: 1.在General中App Icons 使用Source--> AppIcon2.在Images.xcassets 中依次添加对应尺寸的icon.3.选中AppIcon ,在右侧第三个按钮下,勾选 iOS icon is pre-rendered.4.编译,运行,icon高光效果就没有了.如果还存... 阅读全文
posted @ 2014-09-13 21:10 2014_4_30 阅读(154) 评论(0) 推荐(0)
摘要: duplicate symbol _OBJC_METACLASS_$_TabbarButton in: /Users/hw201406/Library/Developer/Xcode/DerivedData/xxx-gafskbgawbctznekgfxqhaugwjce/Build/Inte... 阅读全文
posted @ 2014-08-11 22:55 2014_4_30 阅读(1777) 评论(0) 推荐(0)
摘要: CATransition *animation = [CATransition animation]; animation.delegate = self; animation.duration = 0.5f; animation.timingFunction = UIVi... 阅读全文
posted @ 2014-08-04 10:59 2014_4_30 阅读(252) 评论(0) 推荐(0)
摘要: 适配i5,要加入i5的启动页才行,否则运行的效果还是i4 阅读全文
posted @ 2014-08-04 10:58 2014_4_30 阅读(112) 评论(0) 推荐(0)
摘要: - (void)json2Plist{ NSString *filePath = [self applicationDocumentsDirectoryFileName:@"json"]; NSMutableArray *tempArray = [[NSMutableArray allo... 阅读全文
posted @ 2014-08-04 10:57 2014_4_30 阅读(370) 评论(0) 推荐(0)