自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(2)
  • 资源 (3)
  • 收藏
  • 关注

转载 [[NSBundle mainBundle]pathForResource..取值为空

转载至:http://blog.csdn.net/zww1984774346/article/details/78128148最近遇到一个奇葩的问题,使用[[NSBundle mainBundle]pathForResource:imageName ofType:@"png"];获取图片一直取不到图片,简直晕死,一直好用的方法突然不行了,只能另寻它法了。这里提出一个解决方案仅供参考

2017-09-28 21:21:14 2735

转载 App适配iOS 11

随着Xcode GM版本发布,适配iOS 11也就提上了日程,总的来说整个适配过程(不包含适配iPhone X)不是很麻烦。首先建议观看今年WWDC的一个视频 Updating Your App for iOS 11,视频讲解了iOS 11一些API的变化,对理解适配过程有帮助。navigation bar1、导航栏新增了一种大标题样式,默认设置是不开启,所以不需要修改。2、t

2017-09-22 14:11:05 464

音乐播放器

内置音乐播放器、歌词滚动、上一首歌曲、下一首歌曲、音量调节、摇一摇换歌曲等功能。

2015-09-08

音频、视频合成

ios中音频、视频合成,取消原视频音轨,和新的音轨合成一段视频。

2015-09-07

不会说话的汤姆猫

NSString *format=dict[@"imageFormat"]; NSInteger frames=[dict[@"frames"] integerValue]; NSMutableArray * imageList=[NSMutableArray array]; for (NSInteger i=0; i<frames; i++) { NSString *fileName=[NSString stringWithFormat:format,i]; UIImage* image=[UIImage imageNamed:fileName]; [imageList addObject:image]; } [_tomcatImageView setAnimationImages:imageList]; [_tomcatImageView setAnimationDuration:frames/10.0]; [_tomcatImageView setAnimationRepeatCount:1]; [_tomcatImageView startAnimating]; // NSArray *soundFiles=dict[@"soundFiles"]; if (soundFiles.count>0) { NSInteger seed=arc4random() %soundFiles.count; [self loadSoundWithFileName:soundFiles[seed]]; } }

2015-09-07

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除