摘要:
来源:http://mobile.51cto.com/iphone-386851_all.htm学习IOS开发这对于一个初学者来说,是一件非常挠头的事情。其实学习IOS开发无外乎平时的积累与总结。下面为大家整理了一部分的iOS学习笔记总结整理,希望对大家有所帮助。一.内存管理情况1- autorelease,当用户的代码在持续运行时,自动释放池是不会被销毁的,这段时间内用户可以安全地使用自动释放的对象。当用户的代码运行告一段 落,开始等待用户的操作,自动释放池就会被释放掉(调用dealloc),池中的对象都会收到一个release,有可能会因此被销毁。2-成员属性:readonly:不指定re 阅读全文
posted @ 2013-12-09 16:10
猿人谷
阅读(1725)
评论(0)
推荐(0)
摘要:
来源:http://www.open-open.com/lib/view/open1341882439838.html1. UITouch 的主要方法:C代码 -(void)touchesBegan:(NSSet*)toucheswithEvent:(UIEvent*)event;-(void)touchesMoved:(NSSet*)toucheswithEvent:(UIEvent*)event;-(void)touchesEnded:(NSSet*)toucheswithEvent:(UIEvent*)event;-(void)touchesCancelled:(NSSet*)touch 阅读全文
posted @ 2013-12-09 14:51
猿人谷
阅读(588)
评论(0)
推荐(0)
摘要:
来源:http://www.open-open.com/lib/view/open1341882439838.html这次讲的内容很简单:1.首先我们还是创建一个Single View Application,然后打开MainStoryboard_iphone.storyboard,在里面放入俩lable和两个TextFiled:2.接着开始写代码:ViewController.h: 1 #import 2 3 @interface ViewController : UIViewController{ 4 UITextField *nameField; 5 UITextField *num.. 阅读全文
posted @ 2013-12-09 14:25
猿人谷
阅读(847)
评论(0)
推荐(0)
摘要:
来源:http://blog.csdn.net/xiaoxuan415315/article/details/8277581一、键盘风格 UIKit框架支持8种风格键盘。typedefenum{UIKeyboardTypeDefault,//默认键盘:支持所有字符UIKeyboardTypeASCIICapable,//支持ASCII的默认键盘UIKeyboardTypeNumbersAndPunctuation,//标准电话键盘,支持+*#等符号UIKeyboardTypeURL,//URL键盘,有.com按钮;只支持URL字符UIKeyboardTypeNumberPad,//数字键盘UI 阅读全文
posted @ 2013-12-09 11:28
猿人谷
阅读(1097)
评论(0)
推荐(0)
浙公网安备 33010602011771号