一年一改版的9Cut啊

Standard

赶需求到10点半,接着开始更新我的孩子9Cut~

首先是搞新的羊年形状,新加入了5枚,他们是回家、2015数字、毛笔羊、福字、弹幕,更新了以前的3枚图形,总算给用户们和自己一个交代。

紧接着改程序,把形状加进去还算简单,改几个数组就行。可以前因为iOS升级导致的背景图变4张诡异的拼接,却浪费了些时间,以前只是用imagenamed传递图片给UIView,现在要首先把图片拉伸,再赋给UIView。再遇到的就是发布过程中的logo问题,因为9Cut仍然支持iOS5,所以还得Add Files固定需要的Icon_72、Icon_144等图标,不能单单倚靠Images.xcassets来管理。最后的问题出在想把9Cut第二版时做的宣传视频放到Appstore,可原视频超过了最大时间长度30秒的限制,就下载了Bigasoft Total Video Convertor来裁剪了下。最终在搞明白新的app上线界面的操作方式后在7点左右提交Appstore审核。

附UIView背景图拉伸的代码:

CGRect mainScreenFrame = [[UIScreen mainScreen] applicationFrame];
primaryView = [[GPUImageView alloc] initWithFrame:mainScreenFrame];
UIGraphicsBeginImageContext(mainScreenFrame.size);[[UIImage imageNamed:@"bk@2x.png"] drawInRect:primaryView.bounds];
UIImage *imageBK = UIGraphicsGetImageFromCurrentImageContext();
UIGraphicsEndImageContext();
primaryView.backgroundColor=[UIColor colorWithPatternImage:imageBK];
self.view=primaryView;

发表评论

邮箱地址不会被公开。 必填项已用*标注

您可以使用这些HTML标签和属性: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>