![](https://img-blog.csdnimg.cn/20201014180756925.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
iphone dev
文章平均质量分 65
freshForIphone
这个作者很懒,什么都没留下…
展开
-
iphone Apps of open source
参考[1]http://maniacdev.com/2010/06/35-open-source-iphone-app-store-apps-updated-with-10-new-apps/[2]http://www.edumobile.org/iphone/iphone-programming-tutorials/25-amazing-open-source-iphone-apps/原创 2012-01-18 17:41:02 · 896 阅读 · 0 评论 -
Xcode4.5中app名称本地化
参考[1]http://developer.apple.com/library/ios/#documentation/MacOSX/Conceptual/BPInternational/Articles/LocalizingPathnames.html#//apple_ref/doc/uid/20002141-BBCFJBFBapp如果会在不同的国家发行,那么就需要为app原创 2012-11-29 16:43:54 · 1893 阅读 · 0 评论 -
UIView只收集move轨迹,不接收“单击”、“长按”事件
参考:[1]http://developer.apple.com/library/ios/#documentation/EventHandling/Conceptual/EventHandlingiPhoneOS/MultitouchEvents/MultitouchEvents.html#//apple_ref/doc/uid/TP40009541-CH3-SW20情景:如果原创 2012-11-17 16:11:31 · 1504 阅读 · 0 评论 -
Quartz 2D Programming Guide --Transparency Layers
参考[1]http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_trans_layers/dq_trans_layers.html#//apple_ref/doc/uid/TP30001066-CH210-TPXREF101透明层原创 2012-12-04 22:40:10 · 1129 阅读 · 0 评论 -
非零环绕数规则和奇-偶规则(Non-Zero Winding Number Rule&&Odd-even Rule)
参考[1]http://www.cs.rit.edu/~icss571/filling/alt_parity.html[2]http://cs.hust.edu.cn/webroot/courses/csgraphics/jiaocai.php?bookpage=5_c_c[3]http://en.wikipedia.org/wiki/Nonzero-rule在图形学中判断原创 2012-12-08 17:51:11 · 12256 阅读 · 6 评论 -
Quartz 2D Programming Guide-Transforms
参考:[1]http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_affine/dq_affine.html#//apple_ref/doc/uid/TP30001066-CH204-CJBECIAD[2]http://www.cnblo原创 2012-12-09 17:08:30 · 1392 阅读 · 1 评论 -
Quartz 2D 裁剪
参考使用Quartz 2D 可以对图片进行裁剪,简单的可以裁剪一个矩形,复杂的可以根据CGPath实现裁剪,也可以使用UIBezierPath进行裁剪,也可以使用一个UIImage做为mask进行裁剪。对于如下图片,不使用裁剪时,显示全部内容使用CGContextClipToRect裁剪矩形,UIImage* imageSrc = [UIImage imag原创 2012-12-09 22:04:24 · 4919 阅读 · 0 评论 -
Quartz 2D Programming Guide -Pattern
参考[1]http://developer.apple.com/library/ios/#documentation/GraphicsImaging/Conceptual/drawingwithquartz2d/dq_overview/dq_overview.html[2]raywenderlish Core Graphics 101: 模版Pattern 可以翻译为模板,或者原创 2012-12-13 22:26:07 · 1392 阅读 · 0 评论 -
Quartz 2D - 绘线
参考[1]https://developer.apple.com/library/mac/#documentation/GraphicsImaging/Reference/CGContext/Reference/reference.html[2]https://developer.mozilla.org/en-US/docs/HTML/Canvas/Tutorial/Applying_st原创 2012-12-19 00:59:07 · 1618 阅读 · 1 评论 -
xcode 调试断点
参考[1] http://developer.apple.com/library/ios/#recipes/xcode_help-breakpoint_navigator/articles/about_breakpoint_navigator.html#//apple_ref/doc/uid/TP40010433-CH6-SW1调试程序时,断点是必不可少的工具,下面介绍一下断点具体使用原创 2013-01-27 18:19:56 · 8901 阅读 · 0 评论 -
iphone push机制
参考:[1]http://mobiforge.com/developing/story/programming-apple-push-notification-services[2]https://github.com/stefanhafeneger/PushMeBaby[3]http://quickblox.com/developers/How_to_create_APNS_cert转载 2012-08-18 23:26:02 · 1034 阅读 · 0 评论 -
Xcode4.5中app字符串&xib&图片资源的本地化
参考[1]http://www.raywenderlich.com/2876/how-to-localize-an-iphone-app-tutorialapp的本地化,除了app名称的本地化,还包括程序中使用文字的本地化、xib资源的本地化(按钮等)、图片资源的本地化,本文分别介绍这三者的本地化1.使用文字的本地化1)在工程文件中右击,”new file“,选择string Fi原创 2012-11-29 18:48:56 · 1832 阅读 · 0 评论 -
光标移动
参考:[1]http://stackoverflow.com/questions/8194712/ios-how-to-move-cursor-to-the-beginning-of-the-current-line-in-uitextview在UITextInput协议中,有selectedTextRange来表示光标的起始和结束位置,如果start和end相同则表示光标选中内容原创 2012-10-10 16:00:39 · 3286 阅读 · 0 评论 -
URL encode
参考[1]http://simonwoodside.com/weblog/2009/4/22/how_to_really_url_encode/1系统提供了stringByAddingPercentEscapesUsingEncoding 函数实现url 编码,但是测试发现“,”都没有被编码,不知道为什么,后来搜到参考1所示。以下是测试代码 NSString* str = @"原创 2012-02-02 18:29:53 · 475 阅读 · 0 评论 -
class-dump
参考:[1]http://www.codethecode.com/projects/class-dump/[2]http://blog.csdn.net/linkai5696/article/details/5803991Usageclass-dump 3.3.4 (64 bit)Usage: class-dump [options] where opti原创 2012-02-15 21:02:28 · 735 阅读 · 0 评论 -
Managing Toll-Free Bridging
参考:[1]http://www.oschina.net/question/54100_36217[2]http://wangjun.easymorse.com/?p=1664在cocoa application的应用中,我们有时会使用Core Foundation(CF),我们经常会在Objective-C和CF之间进行转化。系统使用arc的状态下,编译器不能自动管理CF的内转载 2012-02-29 00:27:31 · 922 阅读 · 2 评论 -
app中自定义url
参考:[1]http://wiki.akosma.com/IPhone_URL_Schemes[2]http://www.idev101.com/code/Objective-C/custom_url_schemes.html在iphoneapp中使用如下代码,即可在app中跳转到safari并打开网址,其实每个app都可以定义一个独的url,实现从其他app跳转。比如系统电话的url原创 2012-03-14 13:55:15 · 1086 阅读 · 0 评论 -
Http 请求
同步方式1,使用NSStringNSString* str = [NSString stringWithContentsOfURL:[NSURL URLWithString:@"http://baidu.com"] encoding:NSUTF8StringEncoding error:nil];2,使用NSDataNSData* data = [NSData da原创 2012-03-15 16:27:12 · 973 阅读 · 0 评论 -
动态设置是否锁屏等
参考[1]http://stackoverflow.com/questions/832940/programmatically-lock-and-unlock-iphone-screen[2]http://stackoverflow.com/questions/4476777/how-to-set-lock-screen-wallpaper-and-ringtone-programmati原创 2012-06-27 11:33:56 · 1996 阅读 · 0 评论 -
CALayer shadow &
参考:[1]http://www.raywenderlich.com/2502/introduction-to-calayers-tutorial[2]http://www.raywenderlich.com/2079/core-graphics-101-shadows-and-gloss[3]http://www.raywenderlich.com/tutorials原创 2012-08-09 20:33:21 · 969 阅读 · 0 评论 -
What's the difference between Quartz Core, Core Graphics and Quartz 2D?
参考[1]http://stackoverflow.com/questions/1877987/whats-the-difference-between-quartz-core-core-graphics-and-quartz-2d Quartz 2D 是Core Graphic 的一部分,Quartz是一组函数、数据类型以及对象,专门设计用于直接在内存中对视图或图像进行绘制。转载 2012-08-24 11:16:43 · 1785 阅读 · 0 评论 -
iphone develop tips
一些iphone的小细节,小技巧1.时间戳[cpp] view plaincopyNSTimeInterval interval = [[NSDate date] timeIntervalSince1970]; NSString* timeStamp = [NSString stringWithFormat:@"hex=%x,dec=%d,milSec=%.3f",(NS原创 2012-06-13 10:36:55 · 1320 阅读 · 0 评论