- 博客(29)
- 资源 (2)
- 收藏
- 关注
原创 UITableView相关技术点
一.Tableview篇 接口代理: @interface XXXViewController : UIViewControllerUITableViewDataSource,UITableViewDelegate> { UITableView *tableContent; NSMutableArray *dataitems; } 初始化 -(
2014-08-04 13:30:01 252
原创 globaldef.h
#define kApp ((EWPAppDelegate *)[UIApplication sharedApplication].delegate)
2014-07-28 09:29:40 534
原创 tabitem标记
self.navigationController.tabBarItem.badgeValue=[NSString stringWithFormat:@"%d",sum];
2014-07-28 09:17:42 301
原创 NSArray排序
NSArray *sortedArray = [messages sortedArrayUsingComparator:^NSComparisonResult(XMPPMessageArchiving_Message_CoreDataObject *p1, XMPPMessageArchiving_Message_CoreDataObject *p2){ NSTimeInte
2014-07-28 09:10:40 224
原创 xmpp错误码
302 重定向 尽管HTTP规定中包含八种不同代码来表示重定向,Jabber只用了其中一个(用来代替所有的重定向错误)。不过Jabber代码302是为以后的功能预留的,目前还没有用到 400 坏请求 Jabber代码400用来通知Jabber客户端,一个请求因为其糟糕的语法不能被识别。例如,当一个Jabber客户端发送一个的订阅请求给它自己活发送一条没有包含“to”属性的消息,
2014-07-18 16:58:12 363
原创 动画
[UIView animateWithDuration:0.3 animations:^{ toolbarBottom.frame = CGRectMake(0,SCREEN_HEIGHT, SCREEN_WIDTH, TOOLBAR_HEIGHT); } completion:^(BOOL finished) { }];
2014-05-15 16:05:09 211
原创 设置tableviewcell选中样式
cell.selectionStyle = UITableViewCellSelectionStyleNone;
2014-05-14 14:27:32 322
原创 IOS和c++混编
设置target下 buildsettings [all][combined] Apple LLVM 5.1 -language
2014-05-13 19:23:46 424
原创 深度和通道
图像的深度: 图片是由一个个像素点构成的,所有不同颜色的像素点构成了一副完整的图像,计算机存储图片是以二进制来进行的。 1 bit : 用一位来存储,那么这个像素点的取值范围就是0或者1,那么我们看来这幅图片要么是黑色要么是白色。 4 bit : 取值范围为 0 到 2 的4次方 8 bit : 来存储像素点的取值范围为 0 到 2 的8次方 以此类推,我们
2014-05-13 19:19:43 324
原创 调用系统打电话
#pragma mark ------按钮方法------ - (void)buttonCallClick { NSString *callNumber=[userModel.businessInfo objectForKey:@"mobile"]; if(callNumber && ![callNumber isEqualToString:@""]) { NSS
2014-05-13 13:05:49 312
原创 安装opencv
进入brew.sh 安装 ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
2014-05-10 18:05:17 300
原创 TableView 各种设置
2 3 4 // UITableView Header的高度 - (CGFloat)tableView:(UITableView *)tableView heightForHeaderInSection:(NSInteger)section{ return 45.0f; }
2014-05-06 13:34:40 443
原创 代码规范
1局部控件变量命名原则: 如定义一个用户名的UITextField,去掉前面的UI,全小写textfield然后加上含义部分驼峰方式命名,UITextField*textfieldUserName; 这样定义为了:使用控件前缀,多个控件时,代码前端整齐,不使用控件缩写防止个人写法有差异,带上含义部分增加代码的可读性。 2 *.m代码方法归类整齐,使用#param mark拆分并注释,注释
2014-05-06 13:02:03 308
原创 storyboard中游离的viewcontroller
新的storyboard取代了xib 但有时需要prensent一个viewcontroller 可能他不会
2014-05-05 22:10:35 339
原创 关于程序集的引用
必须从target->build phases->link binary with libraries处添加 否则编译可能会报错
2014-05-05 21:36:37 359
原创 动态添加UITableView行
[tableView beginUpdates]; NSArray *arrInsertRows = [NSArray arrayWithObject:[NSIndexPath indexPathForRow:0 inSection:0]]; [tableView insertRowsAtIndexPaths:arrInsertRows withRowAnimation:UITable
2014-05-05 20:03:24 314
原创 IOS常见的异常与处理
uncaught exception 'NSUnknownKeyException', reason: '[ setValue:forUndefinedKey:]: this class is not key value coding-compliant for the key
2014-05-05 17:16:45 307
空空如也
TA创建的收藏夹 TA关注的收藏夹
TA关注的人