会员
众包
新闻
博问
闪存
赞助商
HarmonyOS
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
魅影追风
博客园
首页
新随笔
联系
管理
订阅
上一页
1
2
3
4
5
6
7
8
9
下一页
2015年5月22日
IOS开发:IOS7下Statusbar出现透明及界面下方出现空白
摘要: 原地址:http://blog.csdn.net/jonahzheng/article/details/11966395步骤1、在ViewController中 loadView #if __IPHONE_OS_VERSION_MAX_ALLOWED >= 70000 if ( IOS7...
阅读全文
posted @ 2015-05-22 11:00 Qiang zi
阅读(292)
评论(0)
推荐(0)
2015年5月14日
求得到一个字符串@“absdfasdfsdfdsafsd....”所有的排列
摘要: //得到一个字符串@“absdfasdfsdfdsafsd....”所有的排列 length!/((相同项)!*(相同项)!)-(int )numberOfstring:(NSString*)str // NSString *str =@"adfsadfasdfasdfsadfsdaxfg...
阅读全文
posted @ 2015-05-14 11:01 Qiang zi
阅读(165)
评论(0)
推荐(0)
2015年5月11日
iOS开发,画曲线和圆
摘要: 转:http://m.blog.csdn.net/blog/u012881779/21887633UIView:- (void)drawRect:(CGRect)rect { [super drawRect:rect]; CGRect frame = CGRectMake(50,...
阅读全文
posted @ 2015-05-11 09:47 Qiang zi
阅读(316)
评论(0)
推荐(0)
2015年2月10日
获取iPhone的网络IP
摘要: - (NSString *)getIPAddress { NSString *address = @"error"; struct ifaddrs *interfaces = NULL; struct ifaddrs *temp_addr = NULL; int succes...
阅读全文
posted @ 2015-02-10 15:44 Qiang zi
阅读(312)
评论(0)
推荐(0)
2015年2月5日
iOS开发--获取时间
摘要: 取得当前的年月日,当前的时分秒获得,周几和星期几获得NSDate*date = [NSDate date];NSCalendar*calendar = [NSCalendar currentCalendar];NSDateComponents*comps; // 年月日获得comps =[calen...
阅读全文
posted @ 2015-02-05 10:47 Qiang zi
阅读(248)
评论(0)
推荐(0)
2015年1月27日
ios 遍历数组的方法
摘要: //第一种[arr enumerateObjectsUsingBlock: ^(id obj, NSUInteger idx, BOOL *stop){ NSLog(@"%ld,%@",idx,[arr objectAtIndex:idx]);}];//第二种dispatch_apply([a...
阅读全文
posted @ 2015-01-27 14:07 Qiang zi
阅读(237)
评论(0)
推荐(0)
2015年1月19日
iPhone 开发 LaunchImage 尺寸、命名
摘要: iPhone Portrait iOS 8-Retina HD 5.5 (1242×2208) Default-1104h@3xiPhone Portrait iOS 8-Retina HD 4.7 (750×1334) Default-667h@2xiPhone Portrait iOS 7,8-...
阅读全文
posted @ 2015-01-19 15:09 Qiang zi
阅读(422)
评论(0)
推荐(0)
2014年12月29日
iOS捕获异常,常用的异常处理方法
摘要: 【转】http://www.cocoachina.com/ios/20141229/10787.html使用@try、catch捕获异常:以下是最简单的代码写法,其中@finally可以去掉:@try { // 可能会出现崩溃的代码}@catch (NSException *exception...
阅读全文
posted @ 2014-12-29 13:42 Qiang zi
阅读(547)
评论(0)
推荐(0)
2014年12月24日
检查iphone是否安装某app 【转】
摘要: 转自http://blog.csdn.net/zengconggen/article/details/7714514# 开发中遇到一个问题:公司多个产品时,希望在一个产品A中可以直接打开另外的某个产品B。如果用户尚未安装产品B, 则打开app store下载页面。 对于这个问题:有3个技术点: 1...
阅读全文
posted @ 2014-12-24 16:18 Qiang zi
阅读(446)
评论(0)
推荐(0)
2014年12月22日
NSString / NSData / char* 类型之间的转换
摘要: NSString / NSData / char* 类型之间的转换转自:http://www.cnblogs.com/pengyingh/articles/2341880.html1. NSString转化为UNICODE String:(NSString*)fname = @“Test”;char...
阅读全文
posted @ 2014-12-22 10:48 Qiang zi
阅读(181)
评论(0)
推荐(0)
上一页
1
2
3
4
5
6
7
8
9
下一页
公告