让app在ios6上具有ios7的扁平效果
来源:互联网 发布:locale java 编辑:程序博客网 时间:2024/05/23 12:35
转载地址(http://blog.csdn.net/cuibo1123/article/details/11853695)
使用cocoapods在工程中加入UI7Kit,关于UI7Kit请自行google。
加入到工程
如果没安装cocoapods,则安装。(http://www.cocoapods.org)
安装方法:(需要先安装Commoand Line Tools(XCode->Preferences->Downloads first.))
sudo gem install cocoapods
pod setup # Do not sudo here
在工程中添加ui7kit
#进入工程目录
echo "platform :ios, '5.0'" > Podfile
echo "pod 'UI7Kit'" >> Podfile
pod install
open *.xcworkspace
#安装过程需要连接github下载,请确保能访问github
在工程中使用ui7kit
#import <UI7Kit/UI7Kit.h>
[UI7Kit patchIfNeeded]; // 加入到main方法的@autoreleasepool块中
注意:
编译提示找不到-libpods。
设置Targets-> Build Settings-> Library Search Paths 加上:
Debug:
./Pods/build/Debug-iphonesimulator//虚拟机调试
./Pods/build/Debug-iphoneos//真机调试
Release:
./Pods/build/Release-iphoneos
另:很多朋友建议不用使用UI7Kit,因为UI7Kit工程尚不完善,也不是正式版。bug比较多,稳定性不是很好。
还有人说有私有接口问题,没做测试我也不能确定。
欢迎知道详情的给留个言。
总的来说这东西可以节约大量时间,不过稳定性评价不太高。
有多少人想加班加点,自绘界面?
效果如下:
- 让app在ios6上具有ios7的扁平效果
- 让app在ios6上具有ios7的扁平效果
- 让app在ios6上具有ios7的扁平效果
- 如何让ios7的app同时适应ios6,即ios6与ios7的适配问题
- IOS7上呈现IOS6的水滴刷新效果
- ios6应用运行在ios7系统上
- ios7导航栏有ios6的效果
- 如何将ios6的app图标扁平化
- 实现iOS7上tableView的分割线像iOS6中的效果
- 实现iOS7上tableView的分割线像iOS6中的效果
- 实现iOS7上tableView的分割线像iOS6中的效果
- ios7的UITableView实现ios6的圆角效果
- iOS7中类似iOS6效果的Grouped TableView
- ios 在xcode 5.0以上(做iOS7的项目)怎么设置取消iOS6的Icon半月阴影效果
- ios7上tableviewcell的背景色和ios6的差别
- APP IOS6 适配iOS7开发计巧
- APP IOS6 适配iOS7开发技巧
- APP IOS6 适配iOS7开发计巧
- android学习记录
- iOS开发-从学习到产品/推广 全面总结
- 报错 The method setOnClickListener(View.OnClickListener) in the type View is not applicable for the ar
- A. Domino
- CALayer相关
- 让app在ios6上具有ios7的扁平效果
- redis实现搜索排行榜后记
- Spring的Annotation使用注意(org.springframework.beans.factory.NoSuchBeanDefinitionException)
- 网络子系统47_ip内核协议栈蓝图
- tar压缩解压缩命令详解
- Sonar插件介绍
- MATLAB 内存不足 "Out of memory" 解决办法
- 在eclipse中tomcat每天第一次启动时不会加载项目问题
- android客户端程序连接服务器总是失败,出现IOException