自定义博客皮肤VIP专享

*博客头图:

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

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

博客底图:

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

栏目图:

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

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(14)
  • 收藏
  • 关注

原创 iOS聊天界面cell从下至上滚动

import "ChatView.h"import "ChatCell.h"@interface ChatView () @property (nonatomic, strong) NSMutableArray dataSoure;@property (nonatomic, strong) UITableView tableView;@end@implementation

2016-04-06 15:53:57 1730

转载 友盟统计

http://dev.umeng.com/analytics/ios-doc/integration

2015-07-10 13:53:31 389

转载 Masonry介绍与使用实践(快速上手Autolayout)

http://adad184.com/2014/09/28/use-masonry-to-quick-solve-autolayout/

2015-07-09 16:29:09 334

转载 iOS开发UI篇—自定义瀑布流控件(蘑菇街数据刷新操作)

一、简单说明使用数据刷新框架:该框架提供了两种刷新的方法,一个是使用block回调(存在循环引用问题,_ _weak),一个是使用调用。  问题:在进行下拉刷新之前,应该要清空之前的所有数据(在刷新数据这个方法中)。移除正在显示的cell:(1)把字典中的所有的值,都从屏幕上移除(2)清除字典中的所有元素(3)清除cell的frame,每个位置的cell的fra

2015-04-13 16:35:48 492

转载 UICollectionView基础

UICollectionView基础初始化部分:UICollectionViewFlowLayout *flowLayout= [[UICollectionViewFlowLayout alloc]init];self.myCollectionView = [[UICollectionView alloc] initWithFrame:CGRectMake(20, 20, 250

2015-04-13 15:43:28 272

转载 iOS - 正则表达式判断邮箱、身份证..是否正确

//邮箱+ (BOOL) validateEmail:(NSString *)email{    NSString *emailRegex =@"[A-Z0-9a-z._%+-]+@[A-Za-z0-9.-]+\\.[A-Za-z]{2,4}";    NSPredicate *emailTest =[NSPredicate predicateWithFormat:

2015-04-07 17:55:30 257

转载 linker command failed with exit code 1 (use -v to see invocation)

linker command failed with exit code 1 (use -v to see invocation)的错误调试情况1、        linker command failed with exit code 1 (use -v to see invocation)这个错误貌似遇见并不止一次,当我想用某个第三方类库的时候(如SBJson),我直接把类

2015-04-07 17:07:49 301

原创 UICollectionView的使用

ViewController.h#import @interface ViewController : UIViewController@endViewController.m#import "ViewController.h"#import "MyLayout.h"#import "MyCell.h"#import "MyMod

2015-04-01 14:16:36 242

原创 cell上的button做单选,自定义的cell

-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{    static NSString *CellID = @"CellID";    PayWayCell *cell = [tableView dequeueReusableCellW

2015-03-19 15:35:21 1623

转载 苹果所有常用证书,appID,Provisioning Profiles配置说明及制作图文教程(精)

概述:苹果的证书繁锁复杂,制作管理相当麻烦,今天决定重置一个游戏项目中的所有证书,做了这么多次还是感觉很纠结,索性直接记录下来,日后你我他查阅都方便;首先得描述一下各个证书的定位,作用,这样在制作的时候心中有谱,对整个流程的把握也会准确一些;1、开发者证书(分为开发和发布两种,类型为ios Development,ios Distribution),这个是最基础的,不论是真机调试,还是

2015-03-18 13:33:52 278

转载 使用Autolayout xib实现动态高度的TableViewCell

最近又要做新功能了,虽然没有什么难点,只是获取后端XML数据显示到TableView,但是不是可以更简单快速的完成呢?原来Cell的动态高度一直都是通过sizeWithFont手动计算,潜意识觉得这应该不是最好的实现方式,但由于当时时间紧不允许尝试新技术,所以问题也就遗留了下来,这次又遇到了,时间充裕就解决下吧。Autolayout是解决自适应frame问题的解决方案(iOS6.0就已经支

2015-03-16 14:21:03 461

原创 label 高度自适应

//获取 label 高度-(CGFloat)sizetofit:(NSString *)text{    float dev=[[[UIDevice currentDevice]systemVersion]floatValue];    if (dev>=7.0) {        NSDictionary *dict=@{                        

2015-03-16 14:18:11 296

原创 setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key name.

如果在 storyboard中, 通过 Ctrl - Drag 方式声明了一个 @property , 但你又觉得 在 Ctrl - Drag 时 ,命名的property 不理想, 这时, 你直接在 .h   和 .m 文件中 修改了这个 实例变量的名字, 这时候,编译。  结果该会怎样呢?这时候,会出现以下错误, 而且还会 crash。'NSUnknownKeyEx

2015-03-13 14:55:26 1554

原创 -[UIViewController _loadViewFromNibNamed:bundle:]

Terminating app due to uncaught exception 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "MainViewController" nib but the view outlet was not

2015-03-13 11:55:26 320

空空如也

空空如也

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

TA关注的人

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