上一页 1 2 3 4 5 6 ··· 21 下一页
摘要: 转:http://stackoverflow.com/questions/4046833/print-the-name-of-the-calling-function-to-the-debug-loghttp://stackoverflow.com/questions/1451342/objecti... 阅读全文
posted @ 2015-06-18 18:34 ygm900 阅读(1624) 评论(0) 推荐(0) 编辑
摘要: 转:从此爱上iOS Autolayout这篇不是autolayout教程,只是autolayout动员文章和经验之谈,在本文第五节友情链接和推荐中,我将附上足够大家熟练使用autolayout的教程。这篇文章两个月前就想写下来,但因为一直工作较多,没有时间来完成。今天终于狠下心,丢下代码不写,来完成... 阅读全文
posted @ 2015-06-17 18:46 ygm900 阅读(1378) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.csdn.net/houseq/article/details/40051207对于不同苹果设备,各个参数查看《iOS:机型参数、sdk、xcode各版本》。 机型变化 坐标:表示屏幕物理尺寸大小,坐标变大了,表示机器屏幕尺寸变大了; 像素:表示屏幕图... 阅读全文
posted @ 2015-06-17 17:33 ygm900 阅读(5181) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.csdn.net/phunxm/article/details/42174937目录(?)[+]1.iPhone尺寸规格设备iPhone宽Width高Height对角线Diagonal逻辑分辨率(point)Scale Factor设备分辨率(pixel)PPI3GS2.... 阅读全文
posted @ 2015-06-17 17:12 ygm900 阅读(617) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.csdn.net/jymn_chen/article/details/10949279之前用Text Kit写Reader的时候,在分页时要计算一段文本的尺寸大小,之前使用了NSString类的sizeWithFont:constrainedToSize:lineBrea... 阅读全文
posted @ 2015-06-16 16:04 ygm900 阅读(327) 评论(0) 推荐(0) 编辑
摘要: 注:本文翻译自国外iOS开发者Natasha The Robot的一篇博文,链接在此。在iOS应用中,经常会有很多Button有相同的背景图片,却由于处在不同的位置而大小不同(尽管在iOS7中Button已经没有背景图片了)。比如,一个功能为“Save”的Button要比功能为“Submit”要窄一... 阅读全文
posted @ 2015-06-16 15:41 ygm900 阅读(8443) 评论(1) 推荐(1) 编辑
摘要: 为UINavigationController添加UINavigationItem,我们可以这样写:1.添加返回导航按钮backBarButtonItem1.用系统自带的返回按钮UIBarButtonItem*leftBarButtonItem = [[UIBarButtonItemalloc]in... 阅读全文
posted @ 2015-06-15 18:00 ygm900 阅读(609) 评论(0) 推荐(0) 编辑
摘要: 有时侯你并不想把导航条左侧按钮外观字体或背景全部用以下代码来更改[plain]UIBarButtonItem *rightItem = [YBarButtonItem barButtonWithStyle:YBarButtonStyleRoundedRectangle ... 阅读全文
posted @ 2015-06-15 17:57 ygm900 阅读(223) 评论(0) 推荐(0) 编辑
摘要: What isUITransitionView?What isUILayoutContainerView?Will I get in trouble for adding subviews to them?They are the superviews of aUITableViewwhich is... 阅读全文
posted @ 2015-06-13 15:26 ygm900 阅读(2218) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.dongliwei.cn/archives/uiview-tree-code// Recursively travel down the view tree, increasing the indentation level for children- (void)dum... 阅读全文
posted @ 2015-06-13 14:56 ygm900 阅读(368) 评论(0) 推荐(0) 编辑
摘要: **AFAIK UINavigationTransitionView is a class used to animate UINavigationController child views around. It usually contain one or two UIViewControlle... 阅读全文
posted @ 2015-06-13 14:53 ygm900 阅读(582) 评论(0) 推荐(0) 编辑
摘要: **将libReveal.dylib 和 Reveal.framework 继承进项目后,一定要在 Build Phases->Link Binary With Libraries中将二者删除。**具体设置请参考官方的文档。Help->integration guide 阅读全文
posted @ 2015-06-13 14:47 ygm900 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 在使用常量的时候,我看到主要有两种写法:#define RKLICURegexEnumerationOptionsErrorKey @"RKLICURegexEnumerationOptionsErrorKey"extern NSString * const RKLICURegexEnumerati... 阅读全文
posted @ 2015-06-12 23:19 ygm900 阅读(854) 评论(0) 推荐(0) 编辑
摘要: 转:http://jingyan.baidu.com/article/7082dc1c4f0a11e40a89bdac.html页面标签切换效果,几乎是所有大网站(尤其是电商类网站)标配的交互方式;之所以应用如此普遍,关键在于网站首屏展示区,是寸土寸斤的黄金区域;标签切换可以让更多内容在同一块地方展... 阅读全文
posted @ 2015-06-11 00:43 ygm900 阅读(663) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.qdac.cc/?p=2197Axure RP 是个好东东呀,大大方便了程序员与客户之间的前期调研时的交流。不过有一些控制并没有鼠标移入和移出的操作,比如 HTML 按钮,为了模拟鼠标移入或移出时动态显示下拉列表啥的效果,我们使用了动态面板来做处理。当然了,条条大路通罗马... 阅读全文
posted @ 2015-06-09 23:53 ygm900 阅读(6751) 评论(0) 推荐(0) 编辑
摘要: 转:http://www.cocoachina.com/ios/20150608/12052.html英文原文:Things I wish I had known before starting iOS development—Part 1设计师设计出来了一个不错的引导界面,然而当我看到设计稿的时候... 阅读全文
posted @ 2015-06-09 11:04 ygm900 阅读(312) 评论(1) 推荐(0) 编辑
摘要: 转:class-dump 使用 class-dump 官网地址:这里 我这里下载的是 class-dump-3.5.dmg 版本的。双击.dmg 文件,将 拉倒 /usr / local / bin 目录下[用open /usr 命令打开用户文件夹],这样就可以在终端使用 class-dump 命令 阅读全文
posted @ 2015-06-05 18:50 ygm900 阅读(512) 评论(0) 推荐(0) 编辑
摘要: iOS真机UI调试利器——RevealiOS安全攻防(三):使用Reveal分析他人app使用Reveal分析其他APP(如微信、qq等)的界面结构 阅读全文
posted @ 2015-06-04 18:07 ygm900 阅读(222) 评论(0) 推荐(0) 编辑
摘要: 转:http://security.ios-wiki.com/issue-3-4/Reveal简介Reveal是分析iOS应用UI的利器:Reveal能够在运行时调试和修改iOS应用程序。它能连接到应用程序,并允许开发者编辑各种用户界面参数,这反过来会立即反应在程序的UI上。就像用FireBug调试... 阅读全文
posted @ 2015-06-04 17:49 ygm900 阅读(536) 评论(0) 推荐(0) 编辑
摘要: 使用dispatch_semaphore_t 实现dispatch_semaphore_t sema = dispatch_semaphore_create(0); //创建信号量__block ALAssetsGroup *ret = nil;ALAssetsLibraryGroupsEnume... 阅读全文
posted @ 2015-06-04 11:24 ygm900 阅读(3081) 评论(0) 推荐(0) 编辑
摘要: 原文地址:http://blog.csdn.net/wzzvictory/article/details/16994913一、什么是instancetypeinstancetype是clang 3.5开始,clang提供的一个关键字,表示某个方法返回的未知类型的Objective-C对象。我们都知道... 阅读全文
posted @ 2015-06-02 18:49 ygm900 阅读(192) 评论(0) 推荐(0) 编辑
摘要: iOS开发过程中使用一些常用的宏可以提高开发效率,提高代码的重用性;将这些宏放到一个头文件里然后再放到工程中的-Prefix.pch文件中(或者直接放到-Prefix.pch中)直接可以使用,灰常方便。本文整理自http://www.cocoachina.com/applenews/devnews/... 阅读全文
posted @ 2015-05-21 12:56 ygm900 阅读(540) 评论(0) 推荐(1) 编辑
摘要: 对Objective-C中Block的追探 李博士 阅读全文
posted @ 2015-05-20 12:47 ygm900 阅读(414) 评论(0) 推荐(0) 编辑
摘要: @符号不仅可以生成字符串,还可以生成其他数据类型如NSArray、NSDictionary和NSNumber,是一种简洁快速的用法。// NSArrayarray = [NSArray arrayWithObjects:a, b, c, nil];array = @[ a, b, c ];// NS... 阅读全文
posted @ 2015-05-20 11:37 ygm900 阅读(446) 评论(0) 推荐(0) 编辑
摘要: 浅析 NSURLSession http://boboshone.com/blog/2013/10/21/nsurlsession-tutorial/介绍整体流程结构。iOS NSURLSession Example (HTTP GET, POST, Background Downlads ) ... 阅读全文
posted @ 2015-05-20 10:06 ygm900 阅读(260) 评论(0) 推荐(0) 编辑
摘要: 波波熊-sas- http://boboshone.com/ 阅读全文
posted @ 2015-05-20 10:03 ygm900 阅读(337) 评论(0) 推荐(0) 编辑
摘要: sql:select * from test where col2 like '%'||col1||'%'; 阅读全文
posted @ 2015-05-06 23:38 ygm900 阅读(350) 评论(0) 推荐(0) 编辑
摘要: //判断是否为iPad#define ISIPAD [[[UIDevice currentDevice].model substringToIndex:4] isEqualToString:@"iPad"]//屏幕高度#define SCREEN_HEIGHT ( ISIPAD ? 480 : [[... 阅读全文
posted @ 2015-05-06 16:02 ygm900 阅读(424) 评论(0) 推荐(0) 编辑
摘要: 转:http://www.cocoachina.com/industry/20131106/7304.htmlNSURLSession是iOS7中新的网络接口,它与咱们熟悉的NSURLConnection是并列的。在程序在前台时,NSURLSession与NSURLConnection可以互为替代工... 阅读全文
posted @ 2015-05-06 15:42 ygm900 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 转:http://www.2cto.com/kf/201408/328974.html下列简化写法是IOS6.0以后的新写法NSNumber//简化前的写法:NSNumber *value1;value1 = [NSNumber numberWithInt:12345];value1 = [NSNu... 阅读全文
posted @ 2015-05-05 00:49 ygm900 阅读(409) 评论(0) 推荐(0) 编辑
摘要: #91助手#同步推#威锋网#力美#PP助手#同步推线下卖场#AppleTree#快用苹果助手#AppleTree-广告#AppleTree-新市场#魔品助手ios#itools#越狱助手#安果ios#爱思助手#xy苹果助手#wap站推广#指点科技ios1#指点科技ios2#蛙盟#爱思助手1#兔兔助手... 阅读全文
posted @ 2015-05-04 12:02 ygm900 阅读(528) 评论(0) 推荐(0) 编辑
摘要: //获取当前时间02 NSDate *now = [NSDate date];03 NSLog(@”now date is: %@”, now);0405 NSCalendar *calendar = [NSCalendar currentCalendar];06 NSUInteger unitFl... 阅读全文
posted @ 2015-05-03 11:35 ygm900 阅读(706) 评论(0) 推荐(0) 编辑
摘要: NSString*str =@"aaaa\ aaaa\ bbbb\ aaaa"; NSString*str1 =@"bbbb" "cccc" "dddd"; NSString*str2 =@"eeeee"\ @"ffff"\ @"ggggg"; NSString*str3 =@"iiii... 阅读全文
posted @ 2015-05-03 10:15 ygm900 阅读(1485) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.csdn.net/messageloop3/article/details/9966727在iOS端如何使用Charles用作http调试After noticing that the caching in iPad Safari seemed a little funk... 阅读全文
posted @ 2015-05-02 13:49 ygm900 阅读(776) 评论(0) 推荐(0) 编辑
摘要: SQLite日期时间函数SQLite支持以下五个日期时间函数:date(timestring, modifier, modifier, …)time(timestring, modifier, modifier, …)datetime(timestring, modifier, modifier, ... 阅读全文
posted @ 2015-04-27 16:52 ygm900 阅读(7778) 评论(0) 推荐(0) 编辑
摘要: 转:http://blog.csdn.net/crazychickone/article/details/36413671/* 注意:要先导入ObjectC运行时头文件,以便调用runtime中的方法*/#import@implementationNSObject (PropertyListing)... 阅读全文
posted @ 2015-04-26 10:47 ygm900 阅读(442) 评论(0) 推荐(0) 编辑
摘要: 例如:id name value1 a pp2 a pp3 b iii4 b pp5 b pp6 c pp7 c pp8 c iiiid是主键要求得到这样的结果id name value1 a pp3 b iii4 b pp6 c pp8 c iii方法1delete YourTablewhere ... 阅读全文
posted @ 2015-04-25 14:40 ygm900 阅读(356) 评论(0) 推荐(0) 编辑
摘要: 转:http://segmentfault.com/a/1190000000363392编者注:文章的"我"是指原作者。凭良心讲,我不能告诉你不去使用Core Data。它不错,而且也在变好,并且它被很多其他Cocoa开发者所理解,当有新人加入你的组或者需要别人接手你的项目的时候,这点很重要。更重要... 阅读全文
posted @ 2015-04-24 22:55 ygm900 阅读(537) 评论(0) 推荐(0) 编辑
摘要: 转:http://my.oschina.net/youzaiyouzaie/blog/92325源码地址:https://github.com/ccgus/fmdb这次要分享的是在iOS中使用SQLite。其实我对SQLite一点概念都没有,因为一直没有机会使用它。有时候突然想到,就会找几本手边的工... 阅读全文
posted @ 2015-04-23 11:06 ygm900 阅读(1941) 评论(0) 推荐(0) 编辑
摘要: 转:http://www.cnblogs.com/chen1987lei/archive/2011/06/07/2074636.htmlASIHTTPRequest是一款极其强劲的HTTP访问开源项目。让简单的API完成复杂的功能,如:异步请求,队列请求,GZIP压缩,缓存,断点续传,进度跟踪,上传... 阅读全文
posted @ 2015-04-22 17:00 ygm900 阅读(393) 评论(0) 推荐(0) 编辑
上一页 1 2 3 4 5 6 ··· 21 下一页