??xml version="1.0" encoding="utf-8" standalone="yes"?>亚洲精品国产精品国自产网站,亚洲国产成人精品久久,亚洲色大网站WWW永久网站http://www.tkk7.com/writegull/category/50723.htmlzh-cnTue, 24 Dec 2013 18:39:22 GMTTue, 24 Dec 2013 18:39:22 GMT60用UIButton且不会按钮变得半透明http://www.tkk7.com/writegull/archive/2013/12/23/407906.htmlwritegullwritegullMon, 23 Dec 2013 02:29:00 GMThttp://www.tkk7.com/writegull/archive/2013/12/23/407906.htmlhttp://www.tkk7.com/writegull/comments/407906.htmlhttp://www.tkk7.com/writegull/archive/2013/12/23/407906.html#Feedback0http://www.tkk7.com/writegull/comments/commentRss/407906.htmlhttp://www.tkk7.com/writegull/services/trackbacks/407906.html有时候需要手动地ȝ用一个uibutton,使用button.enabled = NO的时候虽然能够达到目的但也会带来副作用,那就是按钮变的半透明了。有时候应用不需要这U副作用Q可以尝试用button.userInteractionEnabled = NO来达到这个目的,在禁用按钮的同时也不会得按钮变得半透明?/span>

writegull 2013-12-23 10:29 发表评论
]]>
MFMessageComposeViewController或MFMailComposeViewController 在IOS6下不昄键盘的问?/title><link>http://www.tkk7.com/writegull/archive/2012/10/30/390482.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Tue, 30 Oct 2012 13:08:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/10/30/390482.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/390482.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/10/30/390482.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/390482.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/390482.html</trackback:ping><description><![CDATA[q个问题g只有在手动改变系l状态栏U别的情冉|会出?br /><br />例如Qself.window.windowLevel = UIWindowLevelStatusBar+1;<br /><br />q样讄的话相当于媄响了弹出短信或邮件控制器面window的别,所以造成不显C键盘问题(不过此问题在ios6以下没有Q?br /><br />解决ҎQ在当前视图控制器中加入下面的代码,卛_解决<br /><p>- (void) viewDidAppear:(BOOL)animated {</p> <p>    [super viewDidAppear:animated];</p> <p>    self.window.windowLevel = UIWindowLevelNormal;</p> <p>}</p><img src ="http://www.tkk7.com/writegull/aggbug/390482.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-10-30 21:08 <a href="http://www.tkk7.com/writegull/archive/2012/10/30/390482.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>xcode 4 制作静态库详解http://www.tkk7.com/writegull/archive/2012/10/09/389260.htmlwritegullwritegullTue, 09 Oct 2012 10:14:00 GMThttp://www.tkk7.com/writegull/archive/2012/10/09/389260.htmlhttp://www.tkk7.com/writegull/comments/389260.htmlhttp://www.tkk7.com/writegull/archive/2012/10/09/389260.html#Feedback0http://www.tkk7.com/writegull/comments/commentRss/389260.htmlhttp://www.tkk7.com/writegull/services/trackbacks/389260.html原文地址:http://blog.csdn.net/pjk1129/article/details/7255163

最q在做Apple的IOS开发,有开发静态库的需求,本nIOS的开发,只允讔R态库或者Framework。在Xcode上没有找到允许编译,如同Android上的*.so和Win32上的dllq样的说法。不qFrameworkq样的框Ӟ估计也是cM动态库的实玎ͼ不过没有具体研究q,后箋l箋深入研究?/p>

我这个文档的静态库的开发是ZXcode4.2和iOS SDK5.0~写的。Xcode4跟之前的Xcode3q是有不的差别的?br style="line-height: normal; " />
下面q单写一个静态库和一个调用静态库的例子?br style="line-height: normal; " />
静态库的编写:

1.静态库工程的徏立:

Xcode New一个新的projectQ选择IOS下面的Framework&LibraryQ下面有一个Cocoa Touch Static Library。直接nextd立一?span style="font-family: Menlo; color: #ff3f47; ">Printq样的工E?/p>


2.工程建立

我们d很简单的"- (void)printA;"?+ (void)printB;"的方法,q个Ҏ的实C是很单的Q在*.m文g中的实现是一?NSLogQ@“”);"q样我们~译出来的libstaticlib可以被其他的IOS工程q行调用了。这块注意一下,目前我们?span style="color: #ff6666; ">Print->iOS Device



3.~译前准?/span>

q里分release与debug版本Q需要设|一?/p>


4.OKQ编?/span>

我们可以在Products下面扑ֈ我们~译生成的libstaticlib.aq个文g?br />

注意未编译前为红Ԍ?                            ~译后ؓ黑色Q?nbsp;?br />

       

5.ok

在右?nbsp;q个文g上右键Open In Finder。这时候我们打开了一个文件夹Q里面有一?span style="color: #6652cc; ">libPrint.a。后面我们l编写一个调用这?span style="color: #6652cc; ">libPrint.a的App。但是这个App在编译时候会出错Q通过q个错误的解冻I说明Xcode的一些编译相关的东西。这里,我们在command下面Ҏ路径扑ֈq个文gQ用q个非常重要的命令查看一下这个lib的信息!

打开l端写入如下命oQ?span style="color: #ff0000; ">q是什么?q就是所在的路径 

以下均是在自qmac上的路径。你需要将/Users/pjk1129/Library/Developer/Xcode/DerivedData/Print-dgfkluumuexoxhcapzidtsmdgqcj/Build/Products/ 替换成你的\径?/span>

cd /Users/pjk1129/Library/Developer/Xcode/DerivedData/Print-dgfkluumuexoxhcapzidtsmdgqcj/Build/Products/  

我们手动打开q个路径Q可以看到如下信息:Release-iphoneos


q个是给真机用的Q那我们要给模拟器和真机装的静态库应该都能用才好。这个下面介l!Q!Q!  


然后再在l端 打开q个文gQ?span style="color: #ff0000; ">cd /Users/user/Library/Developer/Xcode/DerivedData/UItab-dbvoszbzpavyglaboxgflvrnzfce/Build/Products/Debug-iphoneos

命o是:lipo -info libPrint.aQ可以看到显C的l果是:Arch?nbsp; Arm7。下面我会具体介l一下?/p>


6.建立一个调用这个libPrint.a的应?/span>

应用很单了Q我们添加刚才libPrint.a?.h文g?nbsp;然后在这个工E的Build Phases的Link Binary With Library里面d我们刚才拯出来的那个libPrint.a?br />



7.插入了h和a文g?/span>

我们可以在control里面调用q个libPrint.a 函数了?br />

#import "AstroDiskAppDelegate.h"

#import "Print.h"


@implementation AstroDiskAppDelegate


@synthesize window = _window;


- (void)dealloc

{

    [_window release];

    [_viewController release];

    [super dealloc];

}


- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions

{

    

    //调用libPrint.a

    [Print printB];

    Print  *print = [[[Print alloc] init] autorelease];

    [print printA];


    self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];

    [self.window makeKeyAndVisible];

    return YES;

}


8.OKQ编译运行这个应用程序?/span>

~译出现错误了。这个就是这文的关键了。主要就是ؓ了介l编译静态库相关的东ѝ?br />



9.可以看到undefine symbols for architecture i386q样的错误?/span>

其实q个错误原因很简单,是因ؓQ我们用错了~译出来的libUITab.a libQ在模拟器里面,我们需要的是基于i386构架~译的static libQ但是这个a文gQ大家还记得前面说的arm6 arm7构架的么。这个a其实是在iphoneq个arm构架上运行的代码。其实show in finder指向的是一个ios device的库Qƈ不是i386模拟器下的库。那如何~译i386的库呢?看见W二张图片的Print>IOS Device了么Q我们将q个iOS Device修改成iPhone5.0 Simulator。在q行~译Q这样就可以~译出i386下面的库。这个时候我们show in finder打开的文件夹q是ios device下的库。我们最好自己去那个目录下看一下。这里我们用commandL看了一下目录情况,如下Q可以看C个iphoneos的目录和一个simulator的目录?br />


然后我们再看看这个目录与W?条所C的目录有什么不同! 同样也有一个libPrint.a文g?br />



10.错误原因分析

Release-iphoneos里面的是Zarm6 arm7~译出来的库文g。Release-iphonesimulator文g夹下面的是基于i386~译出来的文件?/span>

11.合ƈ.a文gQ制作通用静态库

q二个库一个是用于真机q行的一个是用于模拟器运行的.其实我们可以利用lipo这二个文g打包成一个通用的a文g。命令如下:

?span style="color: #ff0000; ">/Users/user/Library/Developer/Xcode/DerivedData/UITab-dgfkluumuexoxhcapzidtsmdgqcj/Build/Products替换成你的\径?nbsp;

?span style="color: #0055ff; ">/Users/user/Desktop/libPrint.a替换成合q后的\径?nbsp;

lipo -create /Users/pjk1129/Library/Developer/Xcode/DerivedData/Print-dgfkluumuexoxhcapzidtsmdgqcj/Build/Products/Release-iphonesimulator/libPrint.a  /Users/pjk1129/Library/Developer/Xcode/DerivedData/Print-dgfkluumuexoxhcapzidtsmdgqcj/Build/Products/Release-iphoneos/libPrint.a  -output /Users/pjk1129/Desktop/libPrint.a


12.打包以后的库文gQ我们查看信?/span>

然后打入如下命oQlipo -info /Users/pjk1129/Desktop/libPrint.a 

可以看到如下信息Q?br />


如上Q你已经看到了,它具备了i386和arm7的条件?nbsp;现在我们q个静态库Q支持的构架已经是armv7 i386了?br />


13.okQ经q上q步骤后

q个通用库生成后Q我们将原来Q调用这个库q行替换一下,在进行编译,成功~译Q运行结果如下所C:




writegull 2012-10-09 18:14 发表评论
]]>
three20 Debugging 讲解http://www.tkk7.com/writegull/archive/2012/09/27/388664.htmlwritegullwritegullThu, 27 Sep 2012 02:30:00 GMThttp://www.tkk7.com/writegull/archive/2012/09/27/388664.htmlhttp://www.tkk7.com/writegull/comments/388664.htmlhttp://www.tkk7.com/writegull/archive/2012/09/27/388664.html#Feedback0http://www.tkk7.com/writegull/comments/commentRss/388664.htmlhttp://www.tkk7.com/writegull/services/trackbacks/388664.html

You can use Three20's debugging facilities instead of NSLog() / assert(). This would give you an ability to turn off debugging messages without commenting out all NSLog's, sort log messages by importance (errorwarninginfo).

Turn on debuggingQ打开调试Q?/h1>

These instructions are for Xcode 3:

  • Right-click on project, choose "Get Info".
  • In the "Build" tab, choose "Configuration => Debug" (you probably want to enable this only for debug builds)
  • While in the "Build" tab, search for "Preprocessor Macros" under the "GCC 4.2 - Preprocessing" section.
    • Add a declaration that reads DEBUG. That way you enable debugging in general.
    • Add a declaration that reads TTMAXLOGLEVEL=TTLOGLEVEL_INFO. By doing this, you set the default debugging output to beTTLOGLEVEL_INFO, the most descriptive one.

Debugging preprocessor macro

Use debugging

Logging

Use these instead of NSLog(). Which level gets printed to the console and which doesn't depends on what's set in preprocessor macros asTTMAXLOGLEVEL (see above).

TTDERROR(text, ...)    // Log level 1 TTDWARNING(text, ...)  // Log level 3 TTDINFO(text, ...)     // Log level 5 TTDPRINT(text, ...) 

Example

If I got this in AppDelegate.m of my project HelloWorld:

- (void)applicationDidFinishLaunching:(UIApplication *)application {	     TTDINFO(@"Hello!"); } 

...the console output would look like this:

2010-05-15 01:04:20.107 HelloWorld[65222:207] -[AppDelegate applicationDidFinishLaunching:](22): Hello! 

Conditional logging

This is a type of logging facility which only outputs something if a particular condition is met:

TTDCONDITIONLOG(condition, text, ...); 

Example

TTDCONDITIONLOG(TTDFLAG_URLREQUEST, @"Request parameters: %@", request.parameters); 

Debug-only assertions

Three20 also provides support for assertions which only work in the debug build.

TTDASSERT(condition_which_would_lead_to_application_termination_when_true); 

Example

// Not that implementing safeAddSubview: is a good idea - (void)safeAddSubview:(UIView*)view {     TTDASSERT(nil != view);     if (nil == view) {         return;     }     [self addSubview:view]; } 

See also

Links



writegull 2012-09-27 10:30 发表评论
]]>
旧的推送通知从通知中心U除?/title><link>http://www.tkk7.com/writegull/archive/2012/09/14/387745.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Fri, 14 Sep 2012 09:51:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/09/14/387745.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/387745.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/09/14/387745.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/387745.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/387745.html</trackback:ping><description><![CDATA[<p style="background-color: #fef3dd; border: 0px; margin: 0px 0px 24px; padding: 0px; vertical-align: baseline; color: #292929; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 17px; ">译:http://www.joshsunshine.me.uk/2012/02/29/ios-development-remove-old-notifications-from-notification-center.html</p><p style="background-color: #fef3dd; border: 0px; margin: 0px 0px 24px; padding: 0px; vertical-align: baseline; color: #292929; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 17px; ">不逐字译了,只是大体说一下?br />看作者的意思,应该是他l常收到N多通知Q而通过其中一条通知打开一个app以后Q发现那个app的其它通知q在通知中心。作者不喜欢q样的情c我以ؓ我也存在的这L情况Q马上检查了一下,发现没有。看来是数app的问题。但是也记录一下。作者ȝ的从通知中心U除通知的三U方法:<br />1.app的BadgeNumber设ؓ0Q就是app图标右上角那?/p><div text="" default"="" style="background-color: #f1f1f1; border: 1px solid #9f9f9f; margin: 0px 0px 10px; vertical-align: baseline; font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; overflow: auto; white-space: nowrap; width: 740px; "><div codecolorer"="" style="border: 0px; margin: 0px; padding: 5px; vertical-align: baseline; line-height: 1.4em; ">[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];</div></div><p style="background-color: #fef3dd; border: 0px; margin: 0px 0px 24px; padding: 0px; vertical-align: baseline; color: #292929; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 17px; "><br />2.如果BadgeNumber本n是0的情况,可以先将其设1再设|成0</p><div text="" default"="" style="background-color: #f1f1f1; border: 1px solid #9f9f9f; margin: 0px 0px 10px; vertical-align: baseline; font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; overflow: auto; white-space: nowrap; width: 740px; "><div codecolorer"="" style="border: 0px; margin: 0px; padding: 5px; vertical-align: baseline; line-height: 1.4em; ">[[UIApplication sharedApplication] setApplicationIconBadgeNumber:1];<br style="line-height: 1.4em; " />[[UIApplication sharedApplication] setApplicationIconBadgeNumber:0];</div></div><p style="background-color: #fef3dd; border: 0px; margin: 0px 0px 24px; padding: 0px; vertical-align: baseline; color: #292929; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 17px; ">3.如果以上的办法都不好使的话,那就用本地通知ƺ骗一下?/p><div text="" default"="" style="background-color: #f1f1f1; border: 1px solid #9f9f9f; margin: 0px 0px 10px; vertical-align: baseline; font-size: 13px; line-height: 1.4em; font-family: Monaco, 'Lucida Console', monospace; overflow: auto; white-space: nowrap; width: 740px; "><div codecolorer"="" style="border: 0px; margin: 0px; padding: 5px; vertical-align: baseline; line-height: 1.4em; ">UIApplication* application = [UIApplication sharedApplication];<br style="line-height: 1.4em; " />NSArray* scheduledNotifications = [NSArray arrayWithArray:application.scheduledLocalNotifications];<br style="line-height: 1.4em; " />application.scheduledLocalNotifications = scheduledNotifications;</div></div><p style="background-color: #fef3dd; border: 0px; margin: 0px 0px 24px; padding: 0px; vertical-align: baseline; color: #292929; font-family: 'Helvetica Neue', Arial, Helvetica, sans-serif; line-height: 17px; ">p么多了,我仔l想了一下,Z么我的应用从其中一条通知打开的时候,其它的通知消失掉:<br />因ؓ我在E序启动的时候就执行了第一?)</p><img src ="http://www.tkk7.com/writegull/aggbug/387745.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-09-14 17:51 <a href="http://www.tkk7.com/writegull/archive/2012/09/14/387745.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>MFMessageComposeViewController 界面语言问题http://www.tkk7.com/writegull/archive/2012/09/10/387412.htmlwritegullwritegullMon, 10 Sep 2012 10:12:00 GMThttp://www.tkk7.com/writegull/archive/2012/09/10/387412.htmlhttp://www.tkk7.com/writegull/comments/387412.htmlhttp://www.tkk7.com/writegull/archive/2012/09/10/387412.html#Feedback0http://www.tkk7.com/writegull/comments/commentRss/387412.htmlhttp://www.tkk7.com/writegull/services/trackbacks/387412.html使用MFMessageComposeViewController ~写发短信模块时界面是英文的情况下,用下面的Ҏ可以解决问题

在plist里面Localization native development region 选择 china Q然后Localized resources can be mixed ?YESQ如果没有Localized resources can be mixedQ需手动d


writegull 2012-09-10 18:12 发表评论
]]>
icon去除光晕、光?/title><link>http://www.tkk7.com/writegull/archive/2012/07/31/384431.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Tue, 31 Jul 2012 06:06:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/07/31/384431.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/384431.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/07/31/384431.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/384431.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/384431.html</trackback:ping><description><![CDATA[<blockquote type="cite" style="color: #000000; font-family: 'lucida Grande', Verdana; line-height: normal; background-color: #ffffff; "><p>1.图标的圆角效果是pȝ自动加上的?/p><p>2.光晕效果虽然也是pȝ加上的,但可以通过E序中设|参数来L内徏光晕效果?/p><p>ҎQ在info.plist里面d一条记录UIPrerenderedIconQ新版的XCODE 会自动识别ؓIcon already includes gloss effects 打上勑ְOK了。如果没有识别的双栏写上YES可?/p></blockquote><img src ="http://www.tkk7.com/writegull/aggbug/384431.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-07-31 14:06 <a href="http://www.tkk7.com/writegull/archive/2012/07/31/384431.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iphoneU程中用异步网l的悲催l历http://www.tkk7.com/writegull/archive/2012/07/25/383926.htmlwritegullwritegullWed, 25 Jul 2012 03:14:00 GMThttp://www.tkk7.com/writegull/archive/2012/07/25/383926.htmlhttp://www.tkk7.com/writegull/comments/383926.htmlhttp://www.tkk7.com/writegull/archive/2012/07/25/383926.html#Feedback0http://www.tkk7.com/writegull/comments/commentRss/383926.htmlhttp://www.tkk7.com/writegull/services/trackbacks/383926.html阅读全文

writegull 2012-07-25 11:14 发表评论
]]>
iOS内存理~程技?/title><link>http://www.tkk7.com/writegull/archive/2012/07/05/382295.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Thu, 05 Jul 2012 09:05:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/07/05/382295.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/382295.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/07/05/382295.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/382295.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/382295.html</trackback:ping><description><![CDATA[<p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">原文地址Q?span style="line-height: 1.7em; ">http://blog.itotem.com.cn/?p=22</span><br /><br />- alloc, copy, retain会把引用计数+1</p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">- release会把引用计数-1</p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">- 局部变量如果初始化时不是autorelease的,要及时调用release释放Qƈ且赋gؓnil否则引用仍然存在D下次无法用nil做是否有值的判断</p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">- 实例变量要在每次赋值时要先释放当前引用的对象再赋|qretain一下保证引用计Cؓ1</p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">- 对于有retain参数的propertyQ直接?#8221;.”赋值时pȝ会自动释攑ֽ前引用对象再赋|q自动retain一?/p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">- dealloc中要Ҏ有实例变量调用releaseQ对于有retain参数的property只需要调用self.theProperty = nil卛_Q系l会d释放</p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">- delegate的property通常设ؓassignQ如果设为retain的话会有循环引用的问题,比如aView.delegate = self时会把self retain一下,在aView的dealloc中会把delegate releaseQ但是由于self的引用永q不会小?Q所以导致aView和self的dealloc永远都不会被执行Q都永远ȝ内存造成泄露。所以如果要设ؓretain的话一定要保不会造成循环引用问题?/p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">- 在UIViewController中的viewDidUnload中要释放掉局部变量,调用releaseq设为nilQ有时系l收到内存警告时会自动调用这个函数来释放一些内存空?/p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">- pȝ内存警告的回调中要释放掉内存中的~存和其他可释放的东西,以免造成crash</p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">- 使用UITableView时要把cell讄为重用的Qƈ且要保实写得是重用的Q有的h写完的结果相当于q是每次都重建cellQ导致效率低?/p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">- 使用UIScrollView时要自己控制释放掉目前不昄的内容,其是图片,考虑囄大小和浏览效果可以加载当前显C页两边?-5内?/p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">- 囄需要做~存Q尤其是本地文gpȝ~存Q可以放到Library/Cache目录中,q个目录pȝ有专用的帔R来获取,比如Q?br /><br /></p><p style="background-color: #ffffff; border: 0px; margin: 0px 0px 8px; padding: 0px; vertical-align: baseline; font-size: 15px; line-height: 1.7em; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; ">q里是一个小例子阐释前几条基本原则:</p><div class="tlrnnjt" id="crayon-4ff5423edf1a7" crayon-theme-classic="" crayon-font-monaco"="" crayon-os="mac" settings=" scroll-mouseover" style="background-color: #fdfdfd !important; border: 1px solid #999999 !important; margin: 12px 0px; vertical-align: baseline; overflow: hidden !important; position: relative !important; text-shadow: none !important; color: #333333; font-family: 'Segoe UI', Arial, sans-serif; font-size: 16px; line-height: 24px; float: none; clear: both; "><div settings=" mouseover overlay hide delay" style="background-color: #dddddd !important; border-bottom-width: 1px !important; border-bottom-style: solid !important; border-bottom-color: #bbbbbb !important; margin: 0px; vertical-align: baseline; font-family: Monaco, MonacoRegular, 'Courier New', monospace !important; font-size: 12px; line-height: 20px; text-align: left; width: 768px; position: absolute; overflow: hidden; height: 20px; z-index: 2; border-top-width: 2px; border-right-width: 2px; border-left-width: 2px; border-top-style: solid; border-right-style: solid; border-left-style: solid; border-top-color: #0099ff; border-right-color: #0099ff; border-left-color: #0099ff; "><div style="background-image: none; border: none; margin: 0px; padding-right: 2px !important; vertical-align: baseline; height: 20px; float: right !important; "><a crayon-button="" crayon-pressed"="" title="Toggle Line Numbers" style="background-image: url(http://blog.itotem.com.cn/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/nums_light.png); background-color: #bbbbbb; border: none; margin: 2px !important; padding: 0px; vertical-align: baseline; color: #ffffff; line-height: 16px; height: 16px; display: inline; float: left !important; min-width: 20px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; background-position: 50% 50%; background-repeat: no-repeat no-repeat; "></a><a crayon-button"="" title="Copy Plain Code" style="background-image: url(http://blog.itotem.com.cn/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/copy_dark.png); background-color: transparent; border: none; margin: 2px !important; padding: 0px; vertical-align: baseline; color: #0d85cc !important; line-height: 16px; height: 16px; display: inline; float: left !important; min-width: 20px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; background-position: 50% 50%; background-repeat: no-repeat no-repeat; "></a><a crayon-button"="" title="Open Code in Window" style="background-image: url(http://blog.itotem.com.cn/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/popup_dark.png); background-color: transparent; border: none; margin: 2px !important; padding: 0px; vertical-align: baseline; color: #0d85cc !important; line-height: 16px; height: 16px; display: inline; float: left !important; min-width: 20px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; background-position: 50% 50%; background-repeat: no-repeat no-repeat; "></a><a crayon-button"="" title="Toggle Plain Code" style="background-image: url(http://blog.itotem.com.cn/wp-content/plugins/crayon-syntax-highlighter/css/images/toolbar/plain_dark.png); background-color: transparent; border: none; margin: 2px !important; padding: 0px; vertical-align: baseline; color: #0d85cc !important; line-height: 16px; height: 16px; display: inline; float: left !important; min-width: 20px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; background-position: 50% 50%; background-repeat: no-repeat no-repeat; "></a></div></div><div style="background-image: none; border: none; margin: 0px; vertical-align: baseline; font-family: Monaco, MonacoRegular, 'Courier New', monospace !important; font-size: 12px; line-height: 16px; text-align: left; "><textarea settings="dblclick" readonly="" wrap="off" style="color: #333333; line-height: 16px !important; background-color: #ffffff; border-style: none; box-shadow: none; -webkit-box-shadow: none; padding: 0px 5px; border-top-left-radius: 5px; border-top-right-radius: 5px; border-bottom-right-radius: 5px; border-bottom-left-radius: 5px; width: 768px; overflow: auto; margin: 0px; height: 560px; position: absolute; opacity: 0; white-space: pre; resize: none; z-index: 0; "></textarea></div><div style="background-image: none; margin: 0px; vertical-align: baseline; font-family: Monaco, MonacoRegular, 'Courier New', monospace !important; font-size: 12px; line-height: 16px; text-align: left; width: 768px; overflow: auto; position: relative; z-index: 1; height: 560px; "><table cellpadding="0" cellspacing="0" style="background-image: none !important; border-style: solid; border-color: #e7e7e7; margin: 0px -1px 24px 0px; padding: 0px !important; border-collapse: collapse; border-spacing: 0px; font-size: 12px; line-height: 16px; width: 1482px; text-align: left; "><tbody style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; "><tr style="background-image: none; border: 0px; margin: 0px; padding: 0px; "><td "="" settings="show" style="background-color: #dfefff !important; border-top-style: solid; border-right-style: solid !important; border-bottom-style: none !important; border-left-style: none !important; border-top-color: #e7e7e7; border-right-color: #b3d3f3 !important; margin: 0px !important; padding: 6px 24px; vertical-align: top !important; color: #5499de !important; "><div style="background-image: none; border: none; margin: 0px; vertical-align: baseline; "><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">1</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">2</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">3</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">4</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">5</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">6</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">7</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">8</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">9</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">10</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">11</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">12</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">13</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">14</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">15</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">16</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">17</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">18</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">19</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">20</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">21</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">22</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">23</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">24</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">25</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">26</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">27</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">28</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">29</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">30</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">31</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">32</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">33</div><div crayon-striped-num"="" style="background-color: #c8e1fa !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; color: #317cc5 !important; ">34</div><div style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; text-align: center; height: 16px; ">35</div></div></td><td style="background-image: none !important; border-top-style: solid; border-right-style: none !important; border-bottom-style: none !important; border-left-style: none !important; border-top-color: #e7e7e7; margin: 0px !important; padding: 6px 24px; vertical-align: top !important; width: 1457px; "><div style="background-image: none !important; border: none !important; margin: 0px; vertical-align: baseline; white-space: pre; overflow: visible; "><div class="xjphpnj" id="line-1" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #006fe0 !important; ">-</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">(</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #800080 !important; ">void</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">)</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #004ed0 !important; ">aFunction</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">{</span> </div><div crayon-striped-line"="" id="line-2" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="bzbbbzf" id="line-3" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #ff8000 !important; ">//创徏一个局部变量view </span></div><div crayon-striped-line"="" id="line-4" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="ldfzhfz" id="line-5" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #004ed0 !important; ">UIView *</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">view</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #006fe0 !important; ">=</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">[</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">[</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #004ed0 !important; ">UIView </span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">alloc</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">]</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">init</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">]</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">;</span> </div><div crayon-striped-line"="" id="line-6" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="rzhr3fp" id="line-7" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #ff8000 !important; ">// 赋值给实例变量theView </span></div><div crayon-striped-line"="" id="line-8" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="xpp9xhx" id="line-9" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">[</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #004ed0 !important; ">theView </span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">release</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">]</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">;</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #ff8000 !important; ">//先释放一下当前引用的变量 </span></div><div crayon-striped-line"="" id="line-10" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="bvxxhrz" id="line-11" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">theView</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #006fe0 !important; ">=</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">[</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #004ed0 !important; ">view </span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">retain</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">]</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">;</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #ff8000 !important; ">//l实例变量赋值时需要retain一?</span></div><div crayon-striped-line"="" id="line-12" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="b9zhjzj" id="line-13" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #ff8000 !important; ">// 如果theView是一个有retain属性的property </span></div><div crayon-striped-line"="" id="line-14" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="799zvxd" id="line-15" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">self</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">.</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #002d7a !important; ">theView</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #006fe0 !important; ">=</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">view</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">;</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #ff8000 !important; ">//不需要先释放Q也不需要调用retainQ系l会自动做,所以一定不能这样写self.view = [[UIView alloc] init];Q这L话创建的view会被retain两次Q造成泄露Q对于这U可以先创徏一个局部变量,lself.view赋值后再释?</span></div><div crayon-striped-line"="" id="line-16" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="75ppf7b" id="line-17" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">[</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #004ed0 !important; ">view </span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">release</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">]</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">;</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #ff8000 !important; ">//要及旉攑ֱ部变?</span></div><div crayon-striped-line"="" id="line-18" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="bfxhzbv" id="line-19" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">}</span> </div><div crayon-striped-line"="" id="line-20" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="dfxpfdd" id="line-21" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div crayon-striped-line"="" id="line-22" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="jln7hhp" id="line-23" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #006fe0 !important; ">-</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">(</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #800080 !important; ">void</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">)</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #004ed0 !important; ">dealloc</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">{</span> </div><div crayon-striped-line"="" id="line-24" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="vrpzj79" id="line-25" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #ff8000 !important; ">//释放局部变?</span></div><div crayon-striped-line"="" id="line-26" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="7pvfv7d" id="line-27" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">[</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #004ed0 !important; ">theView </span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">release</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">]</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">;</span> </div><div crayon-striped-line"="" id="line-28" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="xbbvdnx" id="line-29" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #ff8000 !important; ">//如果theView是一个有retain属性的propertyQ也可以q样?</span></div><div crayon-striped-line"="" id="line-30" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="vv9xrhx" id="line-31" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">self</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">.</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #002d7a !important; ">theView</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #006fe0 !important; ">=</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">nil</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">;</span> </div><div crayon-striped-line"="" id="line-32" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="z7l9xpz" id="line-33" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">[</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #800080 !important; ">super</span> <span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; ">dealloc</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">]</span><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">;</span> </div><div crayon-striped-line"="" id="line-34" style="background-color: #f7f7f7 !important; border: 1px #cccccc !important; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "> </div><div class="prb73tt" id="line-35" style="background-image: none; border: none; margin: 0px; padding-right: 5px; padding-left: 5px; vertical-align: baseline; height: 16px; "><span "="" style="background-color: transparent; border: 0px; margin: 0px; padding: 0px; vertical-align: baseline; color: #333333 !important; ">}</span></div></div></td></tr></tbody></table></div></div><img src ="http://www.tkk7.com/writegull/aggbug/382295.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-07-05 17:05 <a href="http://www.tkk7.com/writegull/archive/2012/07/05/382295.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>IphoneE序中显C应用图片icon文g不正?/title><link>http://www.tkk7.com/writegull/archive/2012/06/26/381521.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Tue, 26 Jun 2012 08:10:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/06/26/381521.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/381521.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/06/26/381521.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/381521.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/381521.html</trackback:ping><description><![CDATA[今天试E序时发C个奇怪的现象Q我在关于页面中xC图片icon文gQ可是怎么调试都不昄。后来加载其它图片则昄正常?br /><br />我分析原因是Ҏ对程序访问icon文g做了限制Q所以不能正常显C?br /><br />解决ҎQ把icon文g复制一份,Ҏ其它名字Q加载改名字的文Ӟ问题成功解决Q?img src ="http://www.tkk7.com/writegull/aggbug/381521.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-06-26 16:10 <a href="http://www.tkk7.com/writegull/archive/2012/06/26/381521.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iphone调用pȝ电话、短信、浏览器、地图、邮件等http://www.tkk7.com/writegull/archive/2012/06/13/380701.htmlwritegullwritegullWed, 13 Jun 2012 09:09:00 GMThttp://www.tkk7.com/writegull/archive/2012/06/13/380701.htmlhttp://www.tkk7.com/writegull/comments/380701.htmlhttp://www.tkk7.com/writegull/archive/2012/06/13/380701.html#Feedback0http://www.tkk7.com/writegull/comments/commentRss/380701.htmlhttp://www.tkk7.com/writegull/services/trackbacks/380701.htmlopenURL的用方法:[[UIApplication sharedApplication] openURL:[NSURL URLWithString:appString]];
其中pȝ的appString有:
1.Map http://maps.google.com/maps?q=Shanghai 
2.Email mailto://myname@google.com 
3.Tel tel://10086 
4.Msg sms://10086 


openURL能帮助你q行MapsQSMSQBrowser,Phone甚至其他的应用程序。这是iPhone开发中我经帔R要用到的一D代码,它仅仅只有一行而已?br />
//打开地图

- (IBAction)openMaps {
NSString*addressText = @"beijing"; //@"1Infinite Loop, Cupertino, CA 95014"; 
addressText =[addressText stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding]; 
NSString*urlText = [NSString stringWithFormat:@"http://maps.google.com/maps?q=%@",addressText]; 
NSLog(@"urlText=============== %@", urlText); 
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:urlText]];
}

//打开mail

- (IBAction)openEmail { 

[[UIApplication sharedApplication]openURL:[NSURL URLWithString:@"mailto://devprograms@apple.com"]];

 }


//拨打电话 

- (IBAction)openPhone {

 [[UIApplication sharedApplication] openURL:[NSURLURLWithString:@"tel://8004664411"]]; 

}

使用q种方式拨打电话Ӟ当用L束通话后,iphone界面会停留在电话界面?br style="word-wrap: break-word; word-break: break-all; " />用如下方式,可以使得用户l束通话后自动返回到应用Q?br style="word-wrap: break-word; word-break: break-all; " />UIWebView*callWebview =[[UIWebView alloc] init];
NSURL *telURL =[NSURL URLWithString:@"tel:10086"];// 貌似tel:// 或?tel: 都行
[callWebview loadRequest:[NSURLRequest requestWithURL:telURL]];
//记得d到view?br style="word-wrap: break-word; word-break: break-all; " />[self.view addSubview:callWebview];

 q有一U私有方法:Q可能不能通过审核Q?br style="word-wrap: break-word; word-break: break-all; " />[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"telprompt://10086"]];


//打开短信

- (IBAction)openSms { 

[[UIApplication sharedApplication] openURL:[NSURLURLWithString:@"sms://466453"]];

}


//打开览?/span>

-(IBAction)openBrowser { 

[[UIApplication sharedApplication] openURL:[NSURLURLWithString:@"http://itunesconnect.apple.com"]]; 

}



writegull 2012-06-13 17:09 发表评论
]]>
Ҏ面试应聘人员?5道最味性题?/title><link>http://www.tkk7.com/writegull/archive/2012/06/09/380401.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Sat, 09 Jun 2012 06:23:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/06/09/380401.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/380401.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/06/09/380401.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/380401.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/380401.html</trackback:ping><description><![CDATA[<h3><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 1em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-align: left; background-color: #e5ecf4; "></p><div><span style="font-size: 14px; font-weight: normal;">北京旉6?日消息,据外国媒体报道,h在招聘员工和工程师时Q往往会问应聘者有x术方面的问题。苹果却大不相同QL会司会问一些脑{急{弯风格的问题Q提Z些与g规格相关的问题,此Dg更多的是希望从潜在的员工w上挖掘更多的创造力。苹果的q些问题不仅针对技术h员,甚至q针寚w售h员和其他Ҏ人员。以下就是美国网站GlassDoor提供的苹果在面试应聘人员的最有趣x的15道题目:</span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  1、桌上放|了一部旧iPhoneQ你能看到哪些材料?</span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位Q品设计工E师?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  在苹果公司工作的多数员工Q都会了解供应链的成本事务,以确保尽可能地减生产手机的产品成本。苹果手机是极具h竞争优势的品,所以你必须知道如何从事控制成本相关的工作。因此,具备专业的材料及其属性相关的l验有助于你在生手机讑֤旉低成本?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  2、描qC用苹果品的情况</span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位Q销售员?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  如果你想销售苹果品,最好已l是Ҏ用户。无论如何,Ҏ不会聘用一个从未用苹果iPhone手机的h来担d司的销售员工?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  3、如果测试部门否决了500台洗机Q那么你如何查找根源ƈ扑ֈ解决之道Q?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位Q品质量工E师。如果在生中发生了故障Q就可能会导致数NiPhone手机受损Q甚至也可能会此h千上万的收入受损。如果你想管理品质量,那么必ȝ保你能够发现所有生的问题Q特别是那些在供应链初期阶段出现的问题?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  4、你如何在资源非常有限的环境下将处理|络、文件系l、用L面系l等的线E模型{化成用户I间框架Q?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位QY件工E师?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  ~写q营E序的代码较为容易,但是要让它有效的工作׃很难了,特别是当你ؓ手机设计软gӞ你必M赖低功率的芯片来保甉|寿命廉?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  5、你如何计算来自中国的苹果供应量Q?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位Q材料项目经理?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  他们正在探讨字面意义上的ҎQ如你所知,是水果。不q,q也是一道非常基的供应问题。如果你负责理供应链,那么你就需要确切的知道供应 商供应何U品、以及能够提供什么样的材料。苹果公司几乎ؓ其生产的手机购买所有最好的元gQ如果你能够充分了解整个供应链,那就能够减少成本?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  6、用运营放大器来设计一个LED驱动</span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位Q硬件工E师?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  通常情况下,产品不会在非怼化的环境下运行。事实上Q运行环境要么太热、要么太冗甚臌会在水中。因此,你必ȝ保你的品能够在非最优化的环境下q行?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  7、如何诊断缓冲溢出问题?</span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位QY件工E师?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  通常情况下,定谁是最有才华工E师的最x法就是问他们如何去解决问题。缓冲溢出问题一旦生,可能会引发巨大NQ因此,如果你想试你的工程师在极端复杂问题面前如何采取什么行动的话,那么q将是值得提问的好问题?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  8、你?00个编L灯Q在W一环节中都打开q些灯Q然后再换上其它的新灯Q依ơ类推,q样100ơ过后,q有多少个灯泡在亮着Q?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位Q高UY件工E师?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  实际上,Ҏ的面试官q不是最传统的hQ他们会从Khan Academy|站引用一些脑l急{弯风格的问题Q但是,q些问题一般都是涉及一些数学技巧的复杂问题Q因此,要想试一个工E师解决问题的能力,q些问题都将是值得提出的好问题?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  9、你如何及时地关注科技新闻Q?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位QMac人才?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  如果你想q营Ҏ零售商店Q那么还需要确保你具备一U认知感?#8212;—即了解h们如何从新闻中理解苹果公司。苹果的面试官想以此了解应聘人员是否会浏览TechCrunch、heck或Business Insider之类的网站?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  10、你从一?×6的网格的左上方开始,可以向下或者向右移动,那么你会有多种Ҏ能够到达|格的右下角Q?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位Q高UY件工E师?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  q是一个叫?#8220;路径计算”的问题,也是最基本的一U脑{急{弯问题,q样的问题旨在测试应聘h员如何思考问题,以及能否扑ֈ解决问题的方法。苹 果会向他们的部分高软g工程师提Z些更加疯狂的此类问题Q这一点也不为奇。这L问题也取自于Khan Academy?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  11、你如何验表面曲率的q箋性?</span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位QCAD制图员?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  Ҏq讑֤l制了大量的原型——例如iPhone和iPad的原型等。那些原型都需要进行测试,因此Q你需要让一些h快速的l制出原型。但是,q要保证与苹果的其它讑֤保持一_因此Q你需要确保你的制囑֑和设计师具备完美的意识,甚至设计ȝ的Ş状?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  12、找到链接列表的中间?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位QCocoa camp?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  Ҏ会要求他们的软g工程师提供一个更明智的解x案。例如,你可能会获得两个“指示?#8221;Q一个指C器在链接列表中每次Ud一步,另一个每ơ移动两步。当另一指示器到辄ҎQ那么第一个指C器所处的位置是链接列表的中间点?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  13、如果你可以带一件科技产品到偏q的地方Q那会是什么?</span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位Q专员?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  q是一个带?#8220;ƺ骗?#8221;的问题,Ҏ可能是在试你是否喜ƢiPhone手机。在Ҏ店的销售h员(Ҏ店专家就是干q个的)必须非常喜欢Ҏ产品?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  14、在金属片上打出5个洞眼的ҎQ?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位Q品设计工E师?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  Ҏ需要确保其设计师和g工程师至都具备一定的创造力Q即使他们必LU技术专Ӟ因此Q即使是让你在金属片上打z这L单问题也可能会有很多的解x法。事实上Q苹果是在测试应聘h员的创造力?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  15、你认ؓ中学里什么样的群体最好或最单?</span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  招聘职位Q专?/span></div><div><span style="font-size: 14px; font-weight: normal;"><br /></span></div><div><span style="font-size: 14px; font-weight: normal;">  如果你想在苹果商店中挑出那些更可能购买苹果品的专门用户Q你需要具备了解这些用h什么样的hQ无Z们是否购买苹果品,你都需要作Pq尽可能快地区别出来?nbsp;</span></div><p> </p></h3><img src ="http://www.tkk7.com/writegull/aggbug/380401.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-06-09 14:23 <a href="http://www.tkk7.com/writegull/archive/2012/06/09/380401.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>UISegmentedControl分段按钮的? http://www.tkk7.com/writegull/archive/2012/05/03/377303.htmlwritegullwritegullThu, 03 May 2012 09:34:00 GMThttp://www.tkk7.com/writegull/archive/2012/05/03/377303.htmlhttp://www.tkk7.com/writegull/comments/377303.htmlhttp://www.tkk7.com/writegull/archive/2012/05/03/377303.html#Feedback0http://www.tkk7.com/writegull/comments/commentRss/377303.htmlhttp://www.tkk7.com/writegull/services/trackbacks/377303.html
屏幕快照 2010-12-27 上午10.20.03

实现如下代码Q?/span>

- (void)viewDidLoad {
[super viewDidLoad];
segmentedControl=[[UISegmentedControl alloc] initWithFrame:CGRectMake(80.0f, 8.0f, 70.0f, 25.0f) ];
[segmentedControl insertSegmentWithTitle:@"T+" atIndex:0 animated:YES];
[segmentedControl insertSegmentWithTitle:@"T-" atIndex:1 animated:YES];
segmentedControl.segmentedControlStyle = UISegmentedControlStyleBar;
segmentedControl.momentary = YES;
segmentedControl.multipleTouchEnabled=NO;
[segmentedControl addTarget:self action:@selector(Selectbutton:) forControlEvents:UIControlEventValueChanged];
UIBarButtonItem *segButton = [[UIBarButtonItem alloc] initWithCustomView:segmentedControl];
[segmentedControl release];
self.navigationItem.rightBarButtonItem = segButton;
[segButton release];

}

-(void)Selectbutton:(int)sender{
UISegmentedControl *myUISegmentedControl=(UISegmentedControl *)sender;
NSLog(@”!!!!!!!!%d”,myUISegmentedControl.selectedSegmentIndex);
switch (myUISegmentedControl.selectedSegmentIndex) {
case 1:
break;
case 0:
break;
default:
break;
}
}

segmentedControl 中的字体也是可以改动的,代码如下Q?/span>

-(void)ChangeSegmentFont:(UIView *)aView
{
if ([aView isKindOfClass:[UILabel class]]) {
UILabel *lb = (UILabel    *)aView;
[lb setTextAlignment:UITextAlignmentCenter];
[lb setFrame:CGRectMake(0, 0, 80, 25)];
[lb setFont:[UIFont systemFontOfSize:18]];
}
NSArray *na = [aView subviews];
NSEnumerator *ne = [na objectEnumerator];
UIView *subView;
while (subView = [ne nextObject]) {
[self ChangeSegmentFont:subView];
}
}

在需要调用此Ҏ的地方加入下面方法即可(分段控g中已l有分段按钮时调用)

[self ChangeSegmentFont:UISegmentedControl的对象];

卛_



writegull 2012-05-03 17:34 发表评论
]]>
控gc视图之UIControl的派生控?/title><link>http://www.tkk7.com/writegull/archive/2012/04/28/376983.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Sat, 28 Apr 2012 09:21:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/04/28/376983.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/376983.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/04/28/376983.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/376983.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/376983.html</trackback:ping><description><![CDATA[<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="color: #ff0000; ">文章出处Q?/span><a target="_blank" style="color: #ff9900; text-decoration: none; ">http://blog.csdn.net/iukey</a><br /><br />UIKit提供了一l控ӞUISwitch开兟뀁UIButton按钮、UISegmentedControl分段控g、UISlider滑块、UITextField文本字段控g、UIPageControl分页控g?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">控g是对UIViewzcȝ实用增强及补充,q可以直接附着于导航栏、表格单元,甚至更大的对象?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">q些控g的基cd是UIControlQ而UIControlz自UIViewc,所以每个控仉有很多视囄Ҏ,包括附着于其他视囄能力。所有控仉拥有一套共同的属性和Ҏ?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">所以学习控Ӟ我们先学习UIControl?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><strong>属?/strong></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><strong>enabled</strong></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">控g默认是启用的。要用控gQ可以将enabled属性设|ؓNOQ这导致控件忽略Q何触怺件。被用后,控gq可以用不同的方式显C己,比如变成灰色不可用。虽然是由控件的子类完成的,q个属性却存在于UIControl中?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><strong>selected</strong></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">当用户选中控gӞUIControlcM其selected属性设|ؓYES。子cL时用这个属性来让控仉择自nQ或者来表现不同的行为方式?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><strong>contentVerticalAlignment</strong></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">控g如何在垂直方向上布置自n的内宏V默认是内定w端对Ӟ对于文本字段Q可能会ҎUIControlContentVerticalAlignmentCenter。对于这个字D,可以使用下列诸|</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "></p><div bg_java"="" style="width: 722px; line-height: 26px; text-align: left; "><div><div style="border-left-color: #999999; "><strong>[java]</strong> <a title="view plain">view plain</a><a title="copy">copy</a><a title="print">print</a><a title="?">?</a><div style="position: absolute; left: 403px; top: 932px; width: 22px; height: 12px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_1" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="22" height="12" name="ZeroClipboardMovie_1" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=1&width=22&height=12" wmode="transparent"></div></div></div><ol start="1"><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">UIControlContentVerticalAlignmentCenter  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; color: #555555; line-height: 18px; ">UIControlContentVerticalAlignmentTop  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">UIControlContentVerticalAlignmentBottom  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; color: #555555; line-height: 18px; ">UIControlContentVerticalAlignmentFill  </li></ol></div><span style="font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; white-space: pre; "> <strong>contentHorizontalAlignment</strong></span><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">水^寚w方式Q可以只用下列|</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "></p><div bg_java"="" style="width: 722px; line-height: 26px; text-align: left; "><div><div style="border-left-color: #999999; "><strong>[java]</strong> <a title="view plain">view plain</a><a title="copy">copy</a><a title="print">print</a><a title="?">?</a><div style="position: absolute; left: 403px; top: 1115px; width: 22px; height: 12px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_2" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="22" height="12" name="ZeroClipboardMovie_2" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=2&width=22&height=12" wmode="transparent"></div></div></div><ol start="1"><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">UIControlContentHorizontalAlignmentCenter  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; color: #555555; line-height: 18px; ">UIControlContentHorizontalAlignmentTop  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">UIControlContentHorizontalAlignmentBottom  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; color: #555555; line-height: 18px; ">UIControlContentHorizontalAlignmentFill  </li></ol></div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><strong>事g通知</strong></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; "><strong></strong>UIControlcL供了一个标准机Ӟ来进行事件登记和接收。这令你可以指定你的控g在发生特定事件时Q通知代理cȝ一个方法。如果要注册一个事Ӟ可以使用addTargetҎQ?/span></p><div bg_java"="" style="width: 722px; line-height: 26px; text-align: left; "><div><div style="border-left-color: #999999; "><strong>[java]</strong> <a title="view plain">view plain</a><a title="copy">copy</a><a title="print">print</a><a title="?">?</a><div style="position: absolute; left: 403px; top: 1297px; width: 22px; height: 12px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_3" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="22" height="12" name="ZeroClipboardMovie_3" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=3&width=22&height=12" wmode="transparent"></div></div></div><ol start="1"><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">[ myControl addTarget: myDelegate   </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; color: #555555; line-height: 18px; ">            action:<span style="color: #646464; ">@selector</span>(myActionmethod:)  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">            forControlEvents:UIControlEventValueChanged ];  </li></ol></div><span style="font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">事g可以用逻辑OR合ƈ在一P因此可以再一ơ单独的addTarget调用中指定多个事件。下列事件ؓ基类UIControl所支持Q除非另有说明,也适用于所有控件?/span><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><strong>UIControlEventTouchDown</strong></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">单点触摸按下事gQ用L触屏q,或者又有新手指落下的时候?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><strong><strong>UIControlEventTouchDownRepeat</strong><br /></strong></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">多点触摸按下事gQ点触计数大?Q用h下第二、三、或W四Ҏ指的时候?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><strong><strong><span style="white-space: pre; ">UIControlEventTouchDragInside</span></strong></strong></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; ">当一ơ触摸在控gH口内拖动时?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><strong><span style="white-space: pre; ">UIControlEventTouchDragOutside</span></strong></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; "><strong></strong>当一ơ触摸在控gH口之外拖动时?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventTouchDragEnter</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; "><strong></strong>当一ơ触总控gH口之外拖动到内部时?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventTouchDragExit</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; "><strong></strong>当一ơ触总控gH口内部拖动到外部时?strong><br /> </strong></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventTouchUpInside</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; ">所有在控g之内触摸抬v事g?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventTouchUpOutside</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; "><strong></strong>所有在控g之外触摸抬v事g(点触必须开始与控g内部才会发送通知)?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventTouchCancel</span></span><br /></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; ">所有触摸取消事Ӟ即一ơ触?/span>因ؓ放上了太多手指而被取消Q或者被上锁或者电话呼叫打断?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventTouchChanged</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; ">当控件的值发生改变时Q发送通知。用于滑块、分D|件、以及其他取值的控g。你可以配置滑块控g何时发送通知Q在滑块被放下时发送,或者在被拖动时发送?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventEditingDidBegin</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; ">当文本控件中开始编辑时发送通知?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventEditingChanged</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; ">当文本控件中的文本被改变时发送通知?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventEditingDidEnd</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; "><strong></strong>当文本控件中~辑l束时发送通知?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventEditingDidOnExit</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; ">当文本控件内通过按下回R键(或等仯为)l束~辑Ӟ发送通知?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventAlltouchEvents</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; ">通知所有触怺件?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventAllEditingEvents</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; ">通知所有关于文本编辑的事g?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-weight: bold; "><span style="white-space: pre; ">UIControlEventAllEvents</span></span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; ">通知所有事件?/span></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="white-space: pre; ">除了默认事g以外Q自定义控gc还可以?x0F00</span>0000?x0FFFFFFF之间的|来定义他们自q旉?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">要删除一个或多个事g的相应动作,可以使用UIControlcȝremoveTargetҎ。用nil值就可以给定事件目标的所有动作删除:</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "></p><div bg_java"="" style="width: 722px; line-height: 26px; text-align: left; "><div><div style="border-left-color: #999999; "><strong>[java]</strong> <a title="view plain">view plain</a><a title="copy">copy</a><a title="print">print</a><a title="?">?</a><div style="position: absolute; left: 403px; top: 2435px; width: 22px; height: 12px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_4" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="22" height="12" name="ZeroClipboardMovie_4" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=4&width=22&height=12" wmode="transparent"></div></div></div><ol start="1"><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">[ myControl removeTarget:myDelegate   </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; color: #555555; line-height: 18px; ">                  action:nil  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">                  forControlEvents:UIControlEventAllEvents];  </li></ol></div><span style="font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">要取得关于一个控件所有指定动作的列表Q可以用allTargetsҎ。这个方法返回一个NSSetQ其中包含事件的完整列表Q?/span><br style="font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; " /><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "></p><div bg_java"="" style="width: 722px; line-height: 26px; text-align: left; "><div><div style="border-left-color: #999999; "><strong>[java]</strong> <a title="view plain">view plain</a><a title="copy">copy</a><a title="print">print</a><a title="?">?</a><div style="position: absolute; left: 403px; top: 2600px; width: 22px; height: 12px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_5" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="22" height="12" name="ZeroClipboardMovie_5" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=5&width=22&height=12" wmode="transparent"></div></div></div><ol start="1"><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">NSSet* myActions = [myConreol allTargets ];  </li></ol></div> <span style="font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">另外Q你q可以用actionsForTargetҎQ来获取针对某一特定事g目标的全部动作列表:</span><div bg_java"="" style="width: 722px; line-height: 26px; text-align: left; "><div><div style="border-left-color: #999999; "><strong>[java]</strong> <a title="view plain">view plain</a><a title="copy">copy</a><a title="print">print</a><a title="?">?</a><div style="position: absolute; left: 403px; top: 2704px; width: 22px; height: 12px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_6" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="22" height="12" name="ZeroClipboardMovie_6" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=6&width=22&height=12" wmode="transparent"></div></div></div><ol start="1"><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">NSArray* myActions = [ myControl actionForTarget:UIControlEventValueChanged ];  </li></ol></div><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">如果设计了一个自定义控gc,可以使用sendActionsForControlEventҎQؓ基本的UIControl事g或自q自定义事件发送通知。例如,如果你的控g值正在发生变化,可以发送相应通知Q通过控g的代码可以指定时间目标,q个通知被传播到这些指定的目标。例Q?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "></p><div bg_java"="" style="width: 722px; line-height: 26px; text-align: left; "><div><div style="border-left-color: #999999; "><strong>[java]</strong> <a title="view plain">view plain</a><a title="copy">copy</a><a title="print">print</a><a title="?">?</a><div style="position: absolute; left: 403px; top: 2859px; width: 22px; height: 12px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_7" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="22" height="12" name="ZeroClipboardMovie_7" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=7&width=22&height=12" wmode="transparent"></div></div></div><ol start="1"><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">[ self sendActionsForControlEvents:UIControlEventValueChanged ];  </li></ol></div><span style="font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; ">当委托类得到事g通知Ӟ他将收到一个指向事件发送者的指针。下面的例子用于处理分段控g的事Ӟ你的动作ҎQaction methodQ应遵@cM的处理方式:</span><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "></p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; "></p><div bg_java"="" style="width: 722px; line-height: 26px; text-align: left; "><div><div style="border-left-color: #999999; "><strong>[java]</strong> <a title="view plain">view plain</a><a title="copy">copy</a><a title="print">print</a><a title="?">?</a><div style="position: absolute; left: 403px; top: 2988px; width: 22px; height: 12px; z-index: 99; border-image: initial; "><embed id="ZeroClipboardMovie_8" src="http://static.blog.csdn.net/scripts/ZeroClipboard/ZeroClipboard.swf" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="22" height="12" name="ZeroClipboardMovie_8" align="center" allowscriptaccess="always" allowfullscreen="false" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="id=8&width=22&height=12" wmode="transparent"></div></div></div><ol start="1"><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">-(<span style="color: blue; ">void</span>) myAction:(id)sender{  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; color: #555555; line-height: 18px; ">       UISegmentedControl* control = (UISegmentedControl*)sender;  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">       <span style="color: blue; ">if</span>(control == myControl1){  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; color: #555555; line-height: 18px; ">        /*查询控g得?/  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">      /*响应myControl1的动?/  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; color: #555555; line-height: 18px; ">       }  </li><li style="border-width: initial; border-color: initial; background-color: #f5fae2; line-height: 18px; ">}  </li></ol></div><br style="font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; " /><span style="font-family: Arial; font-size: 15px; line-height: 26px; text-align: left; background-color: #ffffff; color: #ff0000; ">此文到此l束Q如果你能耐心看看q篇文章Q对你后面具体的控g会有事半功倍的效果?/span><img src ="http://www.tkk7.com/writegull/aggbug/376983.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-04-28 17:21 <a href="http://www.tkk7.com/writegull/archive/2012/04/28/376983.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iphone开发者证书装多台电脑的方?/title><link>http://www.tkk7.com/writegull/archive/2012/04/27/376746.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Fri, 27 Apr 2012 02:40:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/04/27/376746.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/376746.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/04/27/376746.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/376746.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/376746.html</trackback:ping><description><![CDATA[<p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 27px; color: #494949; font-family: Arial, Helvetica, sans-serif; line-height: 22px; word-wrap: break-word; ">保存你的U钥Q{Ud其它pȝ</p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 27px; color: #494949; font-family: Arial, Helvetica, sans-serif; line-height: 22px; word-wrap: break-word; ">你的私钥安全的保存Q如果你需要在多台电脑上开发或者重装你的操作系l的。如果没有私钥,那么无法再Xcode{֐或者在apple讑֤上测试应用。当一个CSR被生成,Keychain Access应用在你的登录keychain里面生成一个私钥,q个U钥是和你的用户账户兌的,如果在系l重装的时候是无法重新生成的。如果你希望在多个系l上做开发或者测试,那么你需要在所有你工作的系l之上导入你的私钥?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 27px; color: #494949; font-family: Arial, Helvetica, sans-serif; line-height: 22px; word-wrap: break-word; ">1?导出U钥和数字证书是为安全保存和能够在多台电脑上q行工作。打开Keychain Access应用选择’KEY’分类?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 27px; color: #494949; font-family: Arial, Helvetica, sans-serif; line-height: 22px; word-wrap: break-word; ">2?右键点击和你iphone开发证书关联的U钥Qƈ在弹单中选择导出选项?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 27px; color: #494949; font-family: Arial, Helvetica, sans-serif; line-height: 22px; word-wrap: break-word; ">3?使用(.p12)保存包含了你个h信息的钥匙?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 27px; color: #494949; font-family: Arial, Helvetica, sans-serif; line-height: 22px; word-wrap: break-word; ">4?你将会被提示创徏一个密码?/p><p style="margin-top: 0px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; text-indent: 27px; color: #494949; font-family: Arial, Helvetica, sans-serif; line-height: 22px; word-wrap: break-word; ">现在可以通过.p12文g在不同系l之间传输。双?p12在其他系l上q行安装。输入你在step4输入的密码?/p><img src ="http://www.tkk7.com/writegull/aggbug/376746.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-04-27 10:40 <a href="http://www.tkk7.com/writegull/archive/2012/04/27/376746.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title> 利用xcode生成的app生成可以在iphone和itouch上运行的ipa安装?/title><link>http://www.tkk7.com/writegull/archive/2012/04/26/376651.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Thu, 26 Apr 2012 01:50:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/04/26/376651.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/376651.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/04/26/376651.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/376651.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/376651.html</trackback:ping><description><![CDATA[<p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-size: large; ">   在编译好的真机版目录下的.app文gQ至于生成真机可以运行的app的方法,有两U方式,一U是?9元获得一个证书,另外一U是破解的方式,在此不再详述Q本文假设你已经生成了真Z可以q行的app包了Q?span style="color: #ff0000; ">app包实际上是一个文件夹</span>Q?/span></p><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-size: large; ">   假设此安装包的名U是 hello.appQ点d键,选择 昄包内容,q样可以打开q个hello.app文g夹了Q在此文件夹中有一个info.plist文gQ打开它,新增加一个名为SignerIdentity的key字段Q内容ؓApple iPhone OS Application Signing?/span></p><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-size: large; ">然后?app拖到itunesq成ipa?默认名字应该是hello.ipa</span></p><p style="color: #333333; font-family: Arial; line-height: 26px; text-align: left; background-color: #ffffff; "><span style="font-size: large; ">如果要将此ipa分发出去Q可以在itunes中的hello.ipa文g上点击鼠标右键,选择 在finder中显C,可以得到生成后的ipa安装文g?/span></p><img src ="http://www.tkk7.com/writegull/aggbug/376651.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-04-26 09:50 <a href="http://www.tkk7.com/writegull/archive/2012/04/26/376651.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>不用99 iphone简单真?/title><link>http://www.tkk7.com/writegull/archive/2012/04/26/376648.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Thu, 26 Apr 2012 01:42:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/04/26/376648.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/376648.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/04/26/376648.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/376648.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/376648.html</trackback:ping><description><![CDATA[<span style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; ">1.在Windows下打开/Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS4.1.sdk/SDKSettings.plist Q找到CODE_SIGNING-REQUIRED 它对应的值改为NO?/span><br style="outline-style: none; outline-width: initial; outline-color: initial; color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; " /><br style="outline-style: none; outline-width: initial; outline-color: initial; color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; " /><span style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; ">2.打开Xcode创徏Q打开一个项目,把Code signing identity和Any ios 对应的值改为Don’t Code Sign </span><br style="outline-style: none; outline-width: initial; outline-color: initial; color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; " /><br style="outline-style: none; outline-width: initial; outline-color: initial; color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; " /><span style="color: #333333; font-family: Arial; line-height: 26px; background-color: #ffffff; ">3.Build and Run!Enjoy!</span><img src ="http://www.tkk7.com/writegull/aggbug/376648.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-04-26 09:42 <a href="http://www.tkk7.com/writegull/archive/2012/04/26/376648.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iphone开发app icon 控g标准界面 大小Q尺?/title><link>http://www.tkk7.com/writegull/archive/2012/04/26/376645.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Thu, 26 Apr 2012 01:31:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/04/26/376645.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/376645.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/04/26/376645.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/376645.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/376645.html</trackback:ping><description><![CDATA[1.E序图标app icon ------ 普屏 icon.png[57*57] 视网膜屏icon@2x.png[114*114]<br /><br /><span style="line-height: normal; color: #898989; text-align: left; background-color: #2e3033; font-family: Verdana; font-size: 13px; "><h1>iPhone开发中l常用到的控件尺寸大集合</h1><strong>Sizes of iPhone UI Elements</strong><br /><br /><blockquote style="font-size: 1em; margin-top: auto; margin-right: 0px; margin-bottom: auto; margin-left: 35px; "><br /><img alt="iPhone UI 设计的一些标准尺? - 懒得喘气 - 懒得喘气的博? src="http://www.idev101.com/code/User_Interface/sizes.png" border="0" height="700" style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; max-width: 100%; " /><br /><table cellspacing="0" cellpadding="0" style="line-height: 23px; width: 1036px; "><tbody><tr><td style="line-height: 21px; font-size: 12px; ">Element</td><td style="line-height: 21px; font-size: 12px; ">Size (in points)</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Window (including status bar)</td><td style="line-height: 21px; font-size: 12px; ">320 x 480 pts</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Status Bar<br />(<a id="url_1" target="_blank" rel="nofollow" style="color: #a91b33; text-decoration: none; ">How to hide the status bar</a>)</td><td style="line-height: 21px; font-size: 12px; ">20 pts</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">View inside window <br />(visible status bar)</td><td style="line-height: 21px; font-size: 12px; ">320 x 460</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Navigation Bar</td><td style="line-height: 21px; font-size: 12px; ">44 pts</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Nav Bar Image /<br />Toolbar Image</td><td style="line-height: 21px; font-size: 12px; ">up to 20 x 20 pts (transparent PNG)</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Tab Bar</td><td style="line-height: 21px; font-size: 12px; ">49 pts</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Tab Bar Icon</td><td style="line-height: 21px; font-size: 12px; ">up to 30 x 30 pts (transparent PNGs)</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Text Field</td><td style="line-height: 21px; font-size: 12px; ">31 pts</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Height of a view inside <br />a navigation bar</td><td style="line-height: 21px; font-size: 12px; ">416 pts</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Height of a view inside <br />a tab bar</td><td style="line-height: 21px; font-size: 12px; ">411 pts</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Height of a view inside <br />a navbar <em>and</em> a tab bar</td><td style="line-height: 21px; font-size: 12px; ">367 pts</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Portrait Keyboard height</td><td style="line-height: 21px; font-size: 12px; ">216 pts</td></tr><tr><td style="line-height: 21px; font-size: 12px; ">Landscape Keyboard height</td><td style="line-height: 21px; font-size: 12px; ">140 pts</td></tr></tbody></table><strong>Points vs. Pixels</strong><br />The iPhone 4 introduced a high resolution display with twice the pixels of previous iPhones. However you don't have to modify your code to support high-res displays; the coordinate system goes by points rather than pixels, and the dimensions in points of the screen and all UI elements remain the same.<br />iOS 4 supports high resolution displays (like the iPhone 4 display) via the <span style="color: #254b90; ">scale</span> property on UIScreen, UIView, UIImage, and CALayer classes. If the object is displaying high-res content, its scale property is set to 2.0. Otherwise it defaults to 1.0.<br />All you need to do to support high-res displays is to provide @2x versions of the images in your project. See the <a id="url_2" target="_blank" rel="nofollow" style="color: #a91b33; text-decoration: none; ">checklist for updating to iOS4</a> or Apple documentation for <a id="url_3" target="_blank" rel="nofollow" style="color: #a91b33; text-decoration: none; ">Supporting High Resolution Screens</a> for more info.<br /><strong>Adjusting Sizes</strong><br />Click here to see how to adjust <a id="url_4" target="_blank" rel="nofollow" style="color: #a91b33; text-decoration: none; ">View Frames and Bounds</a>.<br /><strong>Additional References</strong><br /><ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 15px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><li>Apple Documentation: <a id="url_5" target="_blank" rel="nofollow" style="color: #a91b33; text-decoration: none; ">Points vs. Pixels</a></li><li>Apple Documentation: <a id="url_6" target="_blank" rel="nofollow" style="color: #a91b33; text-decoration: none; ">UIBarButtonItem Class Reference</a> says "Typically, the size of a toolbar and navigation bar image is 20 x 20 points."</li><li>Apple Documentation: <a id="url_7" target="_blank" rel="nofollow" style="color: #a91b33; text-decoration: none; ">UITabBarItem Class Reference</a> says "The size of an tab bar image is typically 30 x 30 points."</li></ul><div></div></blockquote></span><span style="line-height: normal; color: #898989; text-align: left; background-color: #2e3033; font-family: 'Lucida Grande', Geneva, Helvetica, Arial, sans-serif; font-size: 13px; "><table border="0" cellspacing="0" cellpadding="5" style="line-height: 23px; border-top-style: solid; border-top-color: #9bb3cd; border-left-style: solid; border-left-color: #9bb3cd; margin-bottom: 4em; "><caption style="margin-bottom: 0.417em; text-align: left; "><strong style="font-size: 13px; ">Table 8-1</strong>  Custom icons and images</caption><tbody><tr><th scope="col" style="text-align: left; background-color: #93a5bb; padding-top: 0.3em; padding-right: 0.667em; padding-bottom: 0.3em; padding-left: 0.667em; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-size: 13px; color: #ffffff; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-width: 1px; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.33em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Description</p></th><th scope="col" style="text-align: left; background-color: #93a5bb; padding-top: 0.3em; padding-right: 0.667em; padding-bottom: 0.3em; padding-left: 0.667em; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-size: 13px; color: #ffffff; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-width: 1px; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.33em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Size for iPhone and iPod touch (in pixels)</p></th><th scope="col" style="text-align: left; background-color: #93a5bb; padding-top: 0.3em; padding-right: 0.667em; padding-bottom: 0.3em; padding-left: 0.667em; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-size: 13px; color: #ffffff; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-width: 1px; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.33em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Size for iPad (in pixels)</p></th><th scope="col" style="text-align: left; background-color: #93a5bb; padding-top: 0.3em; padding-right: 0.667em; padding-bottom: 0.3em; padding-left: 0.667em; background-image: initial; background-attachment: initial; background-origin: initial; background-clip: initial; font-size: 13px; color: #ffffff; border-bottom-width: 1px; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-width: 1px; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0.33em; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Guidelines</p></th></tr><tr><td scope="row" style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Application icon (<strong style="line-height: 23px; ">required</strong> for all apps)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">57 x 57</p><p style="line-height: normal; margin-top: 0.417em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">114 x 114 (high resolution)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">72 x 72</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top; "><a rel="nofollow" style="color: #3366cc; line-height: 23px; text-decoration: none; ">“Application Icons”</a></span></p></td></tr><tr><td scope="row" style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">App Store icon (<strong style="line-height: 23px; ">required</strong> for all apps)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">512 x 512</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">512 x 512</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top; "><a rel="nofollow" style="color: #3366cc; line-height: 23px; text-decoration: none; ">“Application Icons”</a></span></p></td></tr><tr><td scope="row" style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Launch image (<strong style="line-height: 23px; ">required</strong> for all apps)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">320 x 480</p><p style="line-height: normal; margin-top: 0.417em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">640 x 960 (high resolution)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">For portrait:</p><ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2.5em; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; list-style-type: none; list-style-position: outside; list-style-image: initial; "><li style="margin-top: 1px; "><p style="line-height: normal; margin-top: 0.667em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; display: inline; ">768 x 1004</p></li></ul><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">For landscape:</p><ul style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 2.5em; padding-top: 0px; padding-right: 0px; padding-bottom: 0.5em; padding-left: 0px; list-style-type: none; list-style-position: outside; list-style-image: initial; "><li style="margin-top: 1px; "><p style="line-height: normal; margin-top: 0.667em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; display: inline; ">1024 x 748</p></li></ul></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top; "><a rel="nofollow" style="color: #3366cc; line-height: 23px; text-decoration: none; ">“Launch Images”</a></span></p></td></tr><tr><td scope="row" style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Small icon for Spotlight search results and Settings (recommended)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">29 x 29</p><p style="line-height: normal; margin-top: 0.417em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">58 x 58 (high resolution)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">50 x 50 for Spotlight search results</p><p style="line-height: normal; margin-top: 0.417em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">29 x 29 for Settings</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top; "><a rel="nofollow" style="color: #3366cc; line-height: 23px; text-decoration: none; ">“Small Icons”</a></span></p></td></tr><tr><td scope="row" style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Document icon (recommended for custom document types)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">22 x 29</p><p style="line-height: normal; margin-top: 0.417em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">44 x 58 (high resolution)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">64 x 64</p><p style="line-height: normal; margin-top: 0.417em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">320 x 320</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top; "><a rel="nofollow" style="color: #3366cc; line-height: 23px; text-decoration: none; ">“Document Icons”</a></span></p></td></tr><tr><td scope="row" style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Web clip icon (recommended for web apps and websites)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">57 x 57</p><p style="line-height: normal; margin-top: 0.417em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">114 x 114 (high resolution)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">72 x 72</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top; "><a rel="nofollow" style="color: #3366cc; line-height: 23px; text-decoration: none; ">“Web Clip Icons”</a></span></p></td></tr><tr><td scope="row" style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Toolbar and navigation bar icon (optional)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Approximately 20 x 20</p><p style="line-height: normal; margin-top: 0.417em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Approximately 40 x 40 (high resolution)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Approximately 20 x 20</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top; "><a rel="nofollow" style="color: #3366cc; line-height: 23px; text-decoration: none; ">“Icons for Navigation Bars, Toolbars, and Tab Bars”</a></span></p></td></tr><tr><td scope="row" style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Tab bar icon (optional)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Approximately 30 x 30</p><p style="line-height: normal; margin-top: 0.417em; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Approximately 60 x 60 (high resolution)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Approximately 30 x 30</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top; "><a rel="nofollow" style="color: #3366cc; line-height: 23px; text-decoration: none; ">“Icons for Navigation Bars, Toolbars, and Tab Bars”</a></span></p></td></tr><tr><td scope="row" style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">Newsstand icon for the App Store (<strong style="line-height: 23px; ">required</strong>for Newsstand apps)</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">At least 512 pixels on the longest edge</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">At least 512 pixels on the longest edge</p></td><td style="padding-top: 0.667em; padding-right: 0.667em; padding-bottom: 0.667em; padding-left: 0.667em; font-size: 13px; vertical-align: middle; border-bottom-style: solid; border-bottom-color: #9bb3cd; border-right-style: solid; border-right-color: #9bb3cd; "><p style="line-height: normal; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="margin-top: 0px; margin-bottom: 0.833em; padding-bottom: 0.833em; vertical-align: top; "><a rel="nofollow" style="color: #3366cc; line-height: 23px; text-decoration: none; ">“Newsstand Icons”</a></span></p></td></tr></tbody></table></span><img src ="http://www.tkk7.com/writegull/aggbug/376645.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-04-26 09:31 <a href="http://www.tkk7.com/writegull/archive/2012/04/26/376645.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>strongQretainQweakQassign自匹配宏http://www.tkk7.com/writegull/archive/2012/04/23/376383.htmlwritegullwritegullMon, 23 Apr 2012 07:49:00 GMThttp://www.tkk7.com/writegull/archive/2012/04/23/376383.htmlhttp://www.tkk7.com/writegull/comments/376383.htmlhttp://www.tkk7.com/writegull/archive/2012/04/23/376383.html#Feedback0http://www.tkk7.com/writegull/comments/commentRss/376383.htmlhttp://www.tkk7.com/writegull/services/trackbacks/376383.html有时我们写个代码开源出来给别h用时Q会被其他开发者抱怨编译不了,很多情况是版本的问题Q尤其现在ARC的出现后关于weakQstrong的问题让人头疹{?br style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; " />有个开源代码这里做的很不错Q就?strong style="border-top-width: 0px; border-right-width: 0px; border-bottom-width: 0px; border-left-width: 0px; border-style: initial; border-color: initial; border-image: initial; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; font-size: 14px; ">MBProgressHUD
看下他是怎么做的Q?/p>
  1. #ifndef MB_STRONG
  2. #if __has_feature(objc_arc)
  3.     #define MB_STRONG strong
  4. #else
  5.     #define MB_STRONG retain
  6. #endif
  7. #endif
  8.  
  9. #ifndef MB_WEAK
  10. #if __has_feature(objc_arc_weak)
  11.     #define MB_WEAK weak
  12. #elif __has_feature(objc_arc)
  13.     #define MB_WEAK unsafe_unretained
  14. #else
  15.     #define MB_WEAK assign
  16. #endif
  17. #endif

非ARC的retainQ相当于ARC的strong
iOS5的ARC中weak能在销毁时自动赋值nilQ这是iOS4.x上用ARC不具备,所以用的unsafe,非ARC自然是assign



writegull 2012-04-23 15:49 发表评论
]]>
release跟nil有什么区?/title><link>http://www.tkk7.com/writegull/archive/2012/04/20/375394.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Fri, 20 Apr 2012 09:40:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/04/20/375394.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/375394.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/04/20/375394.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/375394.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/375394.html</trackback:ping><description><![CDATA[<span style="font-family: Verdana; line-height: normal; background-color: #ffffff; font-size: 14pt; ">release 是将内存引用计数-1  nil 直接赋gؓ0   除非q个指针指向的空间被释放  否则是内存泄露<br /><br /></span><span style="font-family: Verdana; line-height: normal; background-color: #ffffff; font-size: 14pt; ">nil是表C?x0Q可以理解ؓI指针。release是释攑ֆ存?/span><br style="font-family: Verdana; font-size: 13px; line-height: normal; background-color: #ffffff; " /><span style="font-family: Verdana; line-height: normal; background-color: #ffffff; font-size: 14pt; ">例如Q你开辟了一块内存p=[[nsobject alloc] init]; q个时候p是指向这块内存区域的Q如果你直接p=nilQ会造成q块内存没有被释放,内存泄露?如果[p release]释放了内存,但是pq是指向q个内存地址Q如果在操作p会出现EXC_BAD_ACCESS。正的做法应该是释攑֐Q把p指向nil</span><img src ="http://www.tkk7.com/writegull/aggbug/375394.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-04-20 17:40 <a href="http://www.tkk7.com/writegull/archive/2012/04/20/375394.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>iPhone UIView的学?/title><link>http://www.tkk7.com/writegull/archive/2012/04/20/375331.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Fri, 20 Apr 2012 02:37:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/04/20/375331.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/375331.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/04/20/375331.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/375331.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/375331.html</trackback:ping><description><![CDATA[<h1>概述</h1><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 25px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; ">UIView对象在屏q中定义了一个复杂区域和界面来管理这个区域的内容</p><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">视图的职责:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">d和动甅R?/span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">布局和子视图理?/span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 25px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; ">事g处理?/p><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 25px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; "> </p><h1>1、创Z个视囑֯?/h1><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">CGRect viewRect = CGRectMake(10,10,100,100);</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">UIView* myView = [[UIView alloc] initWithFrame:viewRect];</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">[self.window addSubview :myView];//视图作为子视图d到window?/span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><h1>2、动?/h1><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">改变一些视囑ֱ性将会用到动画Q改变属性时创徏一个动画,用于l用户传递在较短旉内的变化。UIViewcd了动d现的大部分工作,但是你仍焉要声明哪U属性改变的时候,你需要动L果。有两种不同的类型来初始化动?/span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">下面的UIView属性支持动画:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">frame,bounds,center,transform,alpha,backgroundColor,contentStretch</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">在iOS 4之后Q用block-based动画ҎQ推荐用)</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">使用 开?提交方式Qbegin/commitQ?/span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><h1>3、管理视囄层次l构</h1><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">superview属性:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">subviews属性:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">window属性:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-addSubviewҎ</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-bringSubviewToFront:(UIView *)veiwҎQ将view视图Ud层次l构的最端Q得其得以展示</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-sendSubviewToBack:(UIView *)veiwҎ,和上面方法正好相?/span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-removeFromSupviewҎQ?/span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-insertSubview:(UIView *)view atIndex:(Interger)indexҎ</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-insertSubview:(UIView *)view aboveSubview(UIView *)siblingView Ҏ</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-insertSubview:(UIView *)view belowSubview(UIView *)siblingView Ҏ</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-exchangeSubviewAtIndex:(NSInteger)index1 withSubviewAtIndex:(NSInteger)index2Ҏ</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-isDescendantOfView:(UIView *)viewҎQ判断view是不是指定视囄子视?/span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><h1>4、子视图的布局(layout)</h1><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-layoutSubviewsҎQ这个方法,默认没有做Q何事情,需要子c进行重?/span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-setNeedsLayoutҎ</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-layoutIfNeededҎ,立即对子视图q行布局</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><h1>5、画/更新视图</h1><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-drawRect:(CGRect)rectҎ</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-setNeedsDisplay</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-setNeedsDisplayInRect:(CGRect)invalidRectҎ</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><h1>6、以块展现动ȝ方式Qanimating views with blockQ?/h1><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">+ animateWithDuration:delay:options:animations:completion:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">+ animateWithDuration:animations:completion:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">+ animateWithDuration:animations:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">+ transitionWithView:duration:options:animations:completion:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><p style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 10px; margin-right: 0px; margin-bottom: 10px; margin-left: 0px; line-height: 25px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; ">+ transitionFromView:toView:duration:options:completion:</p><h1>7、在视图和坐标系l之间{?/h1><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-convertPoint:toView</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-convetPoint:fromView</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-convertRect:toView</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-convertRect:fromView</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><h1>8、跟t视囄关的改变</h1><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-didAddSubview:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-willRemoveSubview:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-willMoveToSuperview</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-didMoveToSuperview</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-willMoveToWindow:</span><br style="padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; line-height: 10px; color: #404040; font-family: arial, sans-serif, verdana, helvetica; text-align: left; background-color: #fafafa; " /><span style="color: #404040; font-family: arial, sans-serif, verdana, helvetica; line-height: 25px; text-align: left; background-color: #fafafa; ">-didMoveToWindow</span><img src ="http://www.tkk7.com/writegull/aggbug/375331.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-04-20 10:37 <a href="http://www.tkk7.com/writegull/archive/2012/04/20/375331.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>调用pȝ提示xE?/title><link>http://www.tkk7.com/writegull/archive/2012/04/16/374729.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Mon, 16 Apr 2012 06:23:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/04/16/374729.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/374729.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/04/16/374729.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/374729.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/374729.html</trackback:ping><description><![CDATA[     摘要: 目前做的一个项目里用到了提C音Q但是又不想d提示韛_库里Q便开始研I调用系l自带的提示韻I最后终于找C。开始在CC上查发现好像很多人都在问Q但没h回答Q我把自己查到的东西和写的一个demol大家分享下吧首先要在工E里加入Audio Toolbox frameworkq个库,然后在需要调用的文g?import <AudioToolbox/AudioToolbox.h>最后在需要播...  <a href='http://www.tkk7.com/writegull/archive/2012/04/16/374729.html'>阅读全文</a><img src ="http://www.tkk7.com/writegull/aggbug/374729.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-04-16 14:23 <a href="http://www.tkk7.com/writegull/archive/2012/04/16/374729.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>UIScrollView的滑?/title><link>http://www.tkk7.com/writegull/archive/2012/04/12/373987.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Thu, 12 Apr 2012 08:57:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/04/12/373987.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/373987.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/04/12/373987.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/373987.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/373987.html</trackback:ping><description><![CDATA[<p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">在用UIScrollView和它的子cUITableViewӞ有时需要在不同操作状态下Q做不同的响应?/p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">如何截获q些状态,如正在滚动,滚动停止{,使用<a target="_blank" style="font-size: 12px; color: #625b49; ">UIScrollViewDelegate_Protocol</a>?/p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; "><br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">@interface SampleClass: UITableViewController<UIScrollViewDelegate> {</p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">...<br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">}</p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">...<br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">@end<br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; "><br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">@implement SampleClass<br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">...<br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">#pragma mark -<br />#pragma mark UIScrollViewDelegate<br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">// 触摸屏幕来滚动画面还是其他的Ҏ使得画面滚动Q皆触发该函?br />- (void)scrollViewDidScroll:(UIScrollView *)scrollView {<br />    NSLog(@"Scrolling...");<br />}<br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">// 触摸屏幕q拖拽画面,再松开Q最后停止时Q触发该函数<br />- (void)scrollViewDidEndDragging:(UIScrollView *)scrollView willDecelerate:(BOOL)decelerate {<br />    NSLog(@"scrollViewDidEndDragging  -  End of Scrolling.");<br />}<br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">// 滚动停止Ӟ触发该函?/p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">- (void)scrollViewDidEndDecelerating:(UIScrollView *)scrollView {<br />    NSLog(@"scrollViewDidEndDecelerating  -   End of Scrolling.");<br />}<br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; "></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">// 调用以下函数Q来自动滚动到想要的位置Q此q程中设|有动画效果Q停止时Q触发该函数</p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">// UIScrollView的setContentOffset:animated: <br /></p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">// UIScrollView的scrollRectToVisible:animated:</p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">// UITableView的scrollToRowAtIndexPath:atScrollPosition:animated:</p><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">// UITableView的selectRowAtIndexPath:animated:scrollPosition:</p><span style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">- (void)scrollViewDidEndScrollingAnimation:(UIScrollView *)scrollView {</span><br style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; " /><span style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">    NSLog(@"scrollViewDidEndScrollingAnimation  -   End of Scrolling.");</span><br style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; " /><span style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">}</span><br style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; " /><p style="line-height: normal; color: #625b49; font-family: Arial; background-color: #ffffff; ">@end</p><img src ="http://www.tkk7.com/writegull/aggbug/373987.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-04-12 16:57 <a href="http://www.tkk7.com/writegull/archive/2012/04/12/373987.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Frame和Bounds的区?/title><link>http://www.tkk7.com/writegull/archive/2012/04/12/373922.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Thu, 12 Apr 2012 02:36:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/04/12/373922.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/373922.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/04/12/373922.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/373922.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/373922.html</trackback:ping><description><![CDATA[<img src="http://www.tkk7.com/images/blogjava_net/writegull/6_491_772cfea14e61028.png" border="0" alt="" width="987" height="672" /><img src ="http://www.tkk7.com/writegull/aggbug/373922.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-04-12 10:36 <a href="http://www.tkk7.com/writegull/archive/2012/04/12/373922.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Lion 10.7.3上安装XCode 4.2的问?/title><link>http://www.tkk7.com/writegull/archive/2012/04/06/373433.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Fri, 06 Apr 2012 01:23:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/04/06/373433.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/373433.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/04/06/373433.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/373433.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/373433.html</trackback:ping><description><![CDATA[<span style="font-family: Verdana; font-size: 12px; line-height: normal; background-color: #ffffff; ">最q的mac os操作pȝ老是出现问题Q其中最大的问题是mac的开发工具XCode 4.2的安装问题,我的pȝ现在是Lion 10.7.3Q不知道怎么安装一开始老是出现q样的错误呢Q就是系l重装之后第一个安装的软g是xcode都还是不行,以前W一ơ装Ҏpȝ是可以的Q悲剧怎么发生在我的w上Q?br /><br /></span><span style="font-family: Verdana; font-size: 12px; line-height: normal; background-color: #ffffff; ">解决ҎQ时间调?011q?/span><img src ="http://www.tkk7.com/writegull/aggbug/373433.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-04-06 09:23 <a href="http://www.tkk7.com/writegull/archive/2012/04/06/373433.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ios4.3模拟器UITextField单行输入框输入内容崩溃问?/title><link>http://www.tkk7.com/writegull/archive/2012/03/16/372022.html</link><dc:creator>writegull</dc:creator><author>writegull</author><pubDate>Fri, 16 Mar 2012 02:49:00 GMT</pubDate><guid>http://www.tkk7.com/writegull/archive/2012/03/16/372022.html</guid><wfw:comment>http://www.tkk7.com/writegull/comments/372022.html</wfw:comment><comments>http://www.tkk7.com/writegull/archive/2012/03/16/372022.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.tkk7.com/writegull/comments/commentRss/372022.html</wfw:commentRss><trackback:ping>http://www.tkk7.com/writegull/services/trackbacks/372022.html</trackback:ping><description><![CDATA[<span style="color: #444444; font-family: 'Microsoft YaHei', Tahoma, Helvetica, SimSun, sans-serif; background-color: #fafafa; ">以前模拟器关于单行输入框的自动较正功能有个bug.在模拟器的设|?-> 通用 -> keyboard 里把q个选项关闭可以了?/span><img src ="http://www.tkk7.com/writegull/aggbug/372022.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.tkk7.com/writegull/" target="_blank">writegull</a> 2012-03-16 10:49 <a href="http://www.tkk7.com/writegull/archive/2012/03/16/372022.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>UITableViewCell 怎样响应多个按钮事gQ获取对应单元格的数据源数据http://www.tkk7.com/writegull/archive/2012/02/06/369487.htmlwritegullwritegullMon, 06 Feb 2012 09:03:00 GMThttp://www.tkk7.com/writegull/archive/2012/02/06/369487.htmlhttp://www.tkk7.com/writegull/comments/369487.htmlhttp://www.tkk7.com/writegull/archive/2012/02/06/369487.html#Feedback0http://www.tkk7.com/writegull/comments/commentRss/369487.htmlhttp://www.tkk7.com/writegull/services/trackbacks/369487.html



比如说第一行点d按钮Q则酸G_数量加1Q?img src ="http://www.tkk7.com/writegull/aggbug/369487.html" width = "1" height = "1" />

writegull 2012-02-06 17:03 发表评论
]]>
iphone开源项目listhttp://www.tkk7.com/writegull/archive/2012/02/03/369309.htmlwritegullwritegullFri, 03 Feb 2012 02:55:00 GMThttp://www.tkk7.com/writegull/archive/2012/02/03/369309.htmlhttp://www.tkk7.com/writegull/comments/369309.htmlhttp://www.tkk7.com/writegull/archive/2012/02/03/369309.html#Feedback0http://www.tkk7.com/writegull/comments/commentRss/369309.htmlhttp://www.tkk7.com/writegull/services/trackbacks/369309.html阅读全文

writegull 2012-02-03 10:55 发表评论
]]>
վ֩ģ壺 kk4kkƵëƬ| һƵ| ձ˳ww555| ɫһվ| ޾Һ| ޳avƬ| avר߲| ҹav뾫Ʒ| ձһһѿ| ˳ҹƵ߹ۿ| 99ƵƵۿ| Ļѹۿ| aëƬƵ| ɫAëƬѿ| 3pˬִƵ| aëƬѹۿվ| Ʒһѹۿ | vavavaӰĻ| վ߹ۿ| ޾Ʒҹþþ| Ů˻Ů| | Ļ뱬app| ɫվwwwվ| ޾ƷŮþþþþþ| ޾Ʒ˾þվ| 72paoƵ| Ʒҹҹ| 67194ֻѹۿ| ȫһҹëƬ| ճˮþ޾Ʒtv| ۺ˾þۺ| ŷղ| avһ | 99Ƶ99߹ۿ| ߹͵Ʒ| ޹ƷۺϾþһ| AVһլɫӰ| ޸ŮBBW| һëƬ߲| ĻƵ߹ۿ|