2014年8月13日

色值转换

摘要: +(UIColor *)colorWithRGB:(int)color alpha:(float)alpha{ return [UIColor colorWithRed:((Byte)(color >> 16))/255.0 green:((Byte)(color >> 8))/255.0 blu... 阅读全文

posted @ 2014-08-13 11:29 三十一 阅读(312) 评论(0) 推荐(0) 编辑

纯代码实现实现各种效果的圆角按钮。

摘要: #import @interface APRoundedButton : UIButton@property (nonatomic, assign) int style;@end//// Created by Alberto Pasca on 27/02/14.// Copyright (c) ... 阅读全文

posted @ 2014-08-13 10:58 三十一 阅读(714) 评论(0) 推荐(0) 编辑

32款动效设计示例收集

摘要: http://www.cocoachina.com/macdev/uiue/2014/0811/9352.html 阅读全文

posted @ 2014-08-13 10:36 三十一 阅读(183) 评论(0) 推荐(0) 编辑

2014年8月8日

iOS 带IAP提交注意事项及无法submit for review的解决方案

摘要: 原文地址:http://blog.sina.com.cn/s/blog_71ce775e0101dl4a.html最近项目接触到了苹果的程序内购(IAP),碰到不少问题,参考了很多帖子才得以解决。在此总结一下,多少可以为初次接触IAP的童鞋一些帮助,面对苹果严格的审核少费一点脑筋。闲话不多说,刚接触... 阅读全文

posted @ 2014-08-08 18:05 三十一 阅读(614) 评论(0) 推荐(0) 编辑

2014年8月7日

数组排序

摘要: iphone开发数组排序(数组中包括字典)1。普通数组排序: NSMutableArray *arr = [NSMutableArray arrayWithObjects:@"0",@"8",@"6",@"1",nil]; NSArray *sortedArray = [arr sortedAr... 阅读全文

posted @ 2014-08-07 17:27 三十一 阅读(136) 评论(0) 推荐(0) 编辑

2014年8月5日

IOS程序员要求

摘要: 精通iphone的UI开发,能熟练操作复杂表视图,熟练使用图层技术, 可以自定义UI控件,使用类别扩展系统控件功能; 擅长通讯技术,熟悉各种通信协议,精通xml, json, 二进制或其他形式的自定义解析,能架设服务器实现客户端与服务器的通讯以提交开发效率;熟练掌握各种数据存储技术,如core da... 阅读全文

posted @ 2014-08-05 18:05 三十一 阅读(244) 评论(0) 推荐(1) 编辑

IOS动画使用

摘要: http://my.oschina.net/simple2012/blog/155610 阅读全文

posted @ 2014-08-05 18:03 三十一 阅读(110) 评论(0) 推荐(0) 编辑

IOS 获取手机ip地址

摘要: #include #include - (NSString *)getIPAddress{NSString *address = @"error";struct ifaddrs *interfaces = NULL;struct ifaddrs *temp_addr = NULL;int succe... 阅读全文

posted @ 2014-08-05 18:02 三十一 阅读(1337) 评论(2) 推荐(0) 编辑

block初尝试。

摘要: 1,@class seatObject;typedef void (^touchButtom) (seatObject *);@interface seatObject : UIView{}@property (nonatomic ,strong)touchButtom block;@end2,@i... 阅读全文

posted @ 2014-08-05 13:45 三十一 阅读(211) 评论(0) 推荐(0) 编辑

2014年8月1日

数组排序

摘要: 1 #pragma mark 冒泡排序 2 - (void)userArrSort:(NSMutableArray *)userArr 3 { 4 int n = userArr.count; 5 int i,j; 6 NSDictionary *temp; 7 f... 阅读全文

posted @ 2014-08-01 10:59 三十一 阅读(215) 评论(0) 推荐(0) 编辑

2014年7月29日

设置标题自适应宽度,动态调整大小

摘要: infoLable.adjustsFontSizeToFitWidth = YES; 阅读全文

posted @ 2014-07-29 15:49 三十一 阅读(289) 评论(0) 推荐(0) 编辑

博客园页面设置排版

摘要: 作者:Vamei 出处:http://www.cnblogs.com/vamei 欢迎转载,也请保留这段声明。谢谢!在博客园写博的半年中,我有时会纠结于一些诸如写作格式和显示效果之类的小问题。我想任何一个热衷于在这里写博客的人都可能会遇到类似的问题,所以就把自己遇到的一些状况和解决方法列出来,以便交... 阅读全文

posted @ 2014-07-29 08:42 三十一 阅读(4288) 评论(3) 推荐(5) 编辑

2014年7月25日

终止延迟函数

摘要: [self performSelector:@selector(returnTextField1) withObject:nil afterDelay:5]; [NSObject cancelPreviousPerformRequestsWithTarget:self selector... 阅读全文

posted @ 2014-07-25 14:09 三十一 阅读(118) 评论(0) 推荐(0) 编辑

2014年7月23日

iOS 关于音频开发

摘要: http://blog.csdn.net/daiyelang/article/details/16986129 阅读全文

posted @ 2014-07-23 11:48 三十一 阅读(90) 评论(0) 推荐(0) 编辑

2014年7月22日

阻止iOS设备锁屏

摘要: Ios代码 [[UIApplication sharedApplication] setIdleTimerDisabled: YES]; 或者 [UIApplication sharedApplication].idleTimerDisabled = YES; [[UIApplication ... 阅读全文

posted @ 2014-07-22 11:29 三十一 阅读(190) 评论(0) 推荐(0) 编辑

2014年7月18日

苹果开发——设置iTunes Connect中的Contracts, Tax, and Banking

摘要: http://zengwu3915.blog.163.com/blog/static/2783489720137485857701/ 阅读全文

posted @ 2014-07-18 08:58 三十一 阅读(191) 评论(0) 推荐(0) 编辑

2014年7月17日

【iOS开发必收藏】详解iOS应用程序内使用IAP/StoreKit付费、沙盒(SandBox)测试、创建测试账号流程!【2012-12-11日更新获取"产品付费数量等于0的问题"】

摘要: Himi 原创, 欢迎转载,转载请在明显处注明! 谢谢。 原文地址:http://blog.csdn.net/xiaominghimi/article/details/6937097 阅读全文

posted @ 2014-07-17 11:42 三十一 阅读(174) 评论(0) 推荐(0) 编辑

2014年7月16日

uibutton 设置title 居左显示

摘要: chooseUserBtr.contentHorizontalAlignment = UIControlContentHorizontalAlignmentLeft; 阅读全文

posted @ 2014-07-16 13:51 三十一 阅读(308) 评论(0) 推荐(0) 编辑

2014年7月15日

通过view 获取viewController

摘要: - (UIViewController *)viewController { if ([self.nextResponder isKindOfClass:UIViewController.class]) { return (UIViewController *)self.... 阅读全文

posted @ 2014-07-15 16:34 三十一 阅读(156) 评论(0) 推荐(0) 编辑

2014年7月14日

tableview 自动滑动到某一行

摘要: NSIndexPath *scrollIndexPath = [NSIndexPath indexPathForRow:10 inSection:0];[[self tableView] scrollToRowAtIndexPath:scrollIndexPath atScrollPo... 阅读全文

posted @ 2014-07-14 11:40 三十一 阅读(214) 评论(0) 推荐(0) 编辑

2014年7月11日

uibutton 设置圆角边框

摘要: [m_selectUserBtr.layer setMasksToBounds:YES]; [m_selectUserBtr.layer setCornerRadius:3]; //设置矩形四个圆角半径 [m_selectUserBtr.layer setBorderWidth:... 阅读全文

posted @ 2014-07-11 15:07 三十一 阅读(1220) 评论(0) 推荐(0) 编辑

2014年7月8日

uibutton 取消点击效果

摘要: btton.adjustsImageWhenHighlighted = NO; 阅读全文

posted @ 2014-07-08 09:17 三十一 阅读(2704) 评论(0) 推荐(0) 编辑

2014年7月7日

iOS图层关系

摘要: 原文:http://blog.csdn.net/xingboss3/article/details/7890238UIView表示屏幕上的一块矩形区域,它在App中占有绝对重要的地位,因为IOS中几乎所有可视化控件都是UIView的子类。负责渲染区域的内容,并且响应该区域内发生的触摸事件UIView... 阅读全文

posted @ 2014-07-07 18:56 三十一 阅读(511) 评论(0) 推荐(0) 编辑

2014年7月1日

关于error:Cannot assign to 'self' outside of a method in the init family

摘要: 有时候我们重写父类的init方法时不注意将init后面的第一个字母写成了小写,在这个方法里面又调用父类的初始化方法(self = [super init];)时会报错,错误信息如下:error:Cannot assign to 'self' outside of a method in the in... 阅读全文

posted @ 2014-07-01 11:52 三十一 阅读(201) 评论(0) 推荐(0) 编辑

2014年6月26日

获取对象的所有属性&&获取对象的所有方法

摘要: #import@implementationNSObject (PropertyListing) /* 获取对象的所有属性 */- (NSDictionary*)properties_aps{ NSMutableDictionary*props = [NSMutableDictionarydicti... 阅读全文

posted @ 2014-06-26 13:54 三十一 阅读(1005) 评论(0) 推荐(0) 编辑

2014年6月24日

怎样在xcode4.x里面使用Memory Leaks和Instruments

摘要: EXC_BAD_ACCESS错误,我通常建议: 1.在可执行选项中设置NSZombieEnabled参数,这有时会帮缩小问题的范围; 2.运行apple的内存检测工具,如Leaks,以便寻找内存问题; 3设定一个断点,单步运行代码,直到你找到引起崩溃的位置; 4.注释代码,直到不崩溃为止,然... 阅读全文

posted @ 2014-06-24 10:16 三十一 阅读(265) 评论(0) 推荐(0) 编辑

2014年6月20日

IOS客户端rtmp

摘要: IOS客户端rtmphttp://www.themidnightcoders.com/fileadmin/docs/ios/index.html?rtmpclient.htm 阅读全文

posted @ 2014-06-20 10:31 三十一 阅读(254) 评论(0) 推荐(0) 编辑

2014年6月19日

通过字符串映射方法

摘要: 有时候我们需要通过类名来生成相应类的实例,这就用到反射机制。首先通过类名生成Class类实例 在通过该Class 实例来创建(alloc)对象;具体方法会用到 NSClassFromString(类名) 一看就知道是C语言的东西;NSString * tempClassName = @"yourCl... 阅读全文

posted @ 2014-06-19 16:12 三十一 阅读(603) 评论(0) 推荐(0) 编辑

2014年6月17日

rtmp

只有注册用户登录后才能阅读该文。 阅读全文

posted @ 2014-06-17 08:39 三十一 阅读(4) 评论(0) 推荐(0) 编辑

2014年6月13日

博客终于开通了

摘要: 期待以后经常用到 阅读全文

posted @ 2014-06-13 16:14 三十一 阅读(73) 评论(0) 推荐(0) 编辑

导航