- 博客(12)
- 收藏
- 关注
原创 cocoapods 0.39怎样创建项目
1.cd 项目名 2.pod init 工程名(自动创建PodFile文件,切记工程名,不要写错,带.xcodeproj后缀的) 3.pod install --verbose --no-repo-update 4.进入的你的项目中修改podfile文件 如下 xcodeproj 'cn.mobiletrain.Intelligent—robot.xcodeproj' platform
2015-11-19 10:33:04 360
原创 Xcode7,http请求时,连不上网,怎么办
1.打开项目的info中 2.添加NSAppTransportSecurity 字典类型 3.字典里添加 NSAllowsArbitraryLoads Boolean 设置YES
2015-11-14 16:32:12 336
原创 推送
新建好一个项目,AppDelegate.m #import "AppDelegate.h" @interface AppDelegate () @end @implementation AppDelegate // 当app被杀掉,然后从通知中心,或者在锁屏状态显示的推送。用户点击了这一个推送,进而启动了app。
2015-11-14 16:25:52 356
原创 网络加载完,想要获取图片的宽,效果瀑布流
我的主页使用collectionview 1.- (UICollectionViewCell *)collectionView:(UICollectionView *)collectionView cellForItemAtIndexPath:(NSIndexPath *)indexPath { NewsCollectionViewCell *cell = [coll
2015-11-14 16:12:19 381
原创 网络获取加载图片的三种方法
// 加载项的图片 NSString *imageUrl = deal.imageFileName; // 1.同步访问 NSData *imageData = [NSData dataWithContentsOfURL:[NSURL URLWithString:imageUrl]]; UIImage *image = [UI
2015-11-14 16:05:39 524
原创 0.39.0
安装过cocoapods的朋友们,要注意啦 1.更新电脑本地保存的版本库当中的版本信息 pod repo update 2.自动生成Podfile文件(0.39的好处,可以自动生成Podfile文件) pod init 工程名 pod update 使用方式跟pod install一样,但是在cocoapods 0.39版本中,第一次安装,
2015-11-14 16:00:07 309
原创 0.35.0 cocoapods安装步骤
1.cocoapods安装 gem sources --remove https://rubygems.org/ gem sources -a http://ruby.taobao.org/ gem sources sudo gem install cocoapods -v 0.35 --verbose 2.查看cocoapods是否安装成功/cocoapods版本查
2015-11-14 15:49:02 329
原创 使用第三方库MJRefresh上下刷新
1.//刷新数据 #import "MJRefresh.h" - (void)viewDidLoad { mainView.header = [MJRefreshNormalHeader headerWithRefreshingBlock:^{ [self performSelector:@selector(refreshData)
2015-11-07 15:52:23 383
原创 怎样在Cell中使用第三方库加载图片
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{ UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifer
2015-11-07 15:43:26 284
原创 iOS常用的第三方库
AFNetworking 网络请求组件 SDWebImage 多个缩略图缓存组件 MJRefresh 下拉刷新,上拉加载更多组件 FMDB 本地数据库组件 MWPhotoBrowser 一款简单的 iOS 照片浏览控件 RESideMenu ZAActivityBar JVFloat
2015-11-05 22:05:54 347
原创 UITableViewCell的样式
1. UITableViewCellStyleDefault 2.UITableViewCellStyleSubtitle 3.UITableViewCellStyleValue1 4.UItableViewCellStyleValue2
2015-11-05 22:01:09 316
空空如也
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人