![](https://img-blog.csdnimg.cn/20201014180756927.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
IOS
lynjay
这个作者很懒,什么都没留下…
展开
-
Objective-c 协议与委托
from:http://mobile.51cto.com/iphone-283416.htmObjective-C中委托和协议是本文要介绍的内容,委托和协议是两个概念,协议实际上相当于C++中的纯虚类的概念,只定义并只能由其它类来实现。而委托类似于Java中的接口。(Objective-C实现委托这种机制是利用协议来实现的,这种说法我现在认为是不对的,理由下述:)。Objectiv转载 2012-07-04 13:17:15 · 712 阅读 · 0 评论 -
UIStepper
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIStepper *stepper = [[UIStepper alloc] init]; stepper.ta原创 2012-07-11 15:08:00 · 4099 阅读 · 0 评论 -
UIWebView
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. CGRect webFrame = [[UIScreen mainScreen] applicationFrame];//原创 2012-07-11 16:52:16 · 583 阅读 · 0 评论 -
Objective-C中一种消息处理方法performSelector: withObject:
Objective-C中调用函数的方法是“消息传递”,这个和普通的函数调用的区别是,你可以随时对一个对象传递任何消息,而不需要在编译的时候声明这些方法。所以Objective-C可以在runtime的时候传递人和消息。 首先介绍两个方法 SEL和@selector根据AppleObjective-C Runtime Reference官方文档这个传递消息的函数就是 id objc_ms转载 2012-07-02 14:01:13 · 718 阅读 · 0 评论 -
Iphone开发证书制作
原文地址:http://tie.youdao.com/st_3979529905881611380对于真机调试,首先要在苹果网站上注册APP ID,以及购买iPhone Develop Program(iDP) 开发者授权,99美元。然后要创建证书请求CSR,创建步骤如下:设置OCSP和CRL为关闭状态。Mac OS 中,打开应用程序,找到 钥匙串访问(Keychain转载 2012-07-02 13:55:15 · 641 阅读 · 0 评论 -
Mac中MacPorts安装和使用
文章转载至http://www.zikercn.com/node/8星期四, 06/07/2012 - 19:02 —张慧敏 MacPorts简介MacPorts,曾经叫做DarwinPorts,是一个软件包管理系统,用来简化Mac OS X和Darwin操作系统上软件的安装。它是一个用来简化自由软件/开放源代码软件的安装的自由/开放源代码项目,与F转载 2012-09-03 09:59:16 · 53712 阅读 · 1 评论 -
IOSOpenDev越狱开发环境配置
参考资料iOS越狱开发环境搭建 theoshttp://www.devdiv.com/home.php?mod=space&uid=54&do=blog&id=7596 http://blog.csdn.net/jimmy54/article/details/7453298 用iOSOpenDev在Xcode里配置越狱开发环境这段时间公司搞越原创 2012-09-03 10:09:26 · 24197 阅读 · 3 评论 -
Xcode4.3下UINavigationController与UITabBarController混合使用
1:首先建一个Empty Application工程,然后建一个AppDelegate.xib,拉一个UINavigationController控件到该xib的Objects上,并让该Custom class 的class继承AppDelegate2:修改Appdelegate.h的内容为如下:3:修改Appdelegate.m的application函数如下:4:在原创 2012-08-01 09:38:57 · 2216 阅读 · 1 评论 -
UITextView
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UITextView *textView = [[UITextView alloc] initWithFrame:CGRec原创 2012-07-11 14:38:12 · 797 阅读 · 0 评论 -
UIPageControl
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIPageControl *pageConTest = [[UIPageControl alloc] initWithFr原创 2012-07-11 13:49:18 · 631 阅读 · 0 评论 -
UIActivityIndicatorView
UIActivityIndicatorView *activityTest= [[UIActivityIndicatorView alloc] initWithFrame:CGRectMake(220, 140, 50, 50)];//指定进度轮的大小 [activityTest startAnimating]; [activityTest setCenter:CGPointM原创 2012-07-11 13:30:32 · 554 阅读 · 0 评论 -
iOS 中监听观察通知的几种方法
转载地址:http://blog.sina.com.cn/s/blog_71ad028b0100v7jv.html本文介绍ObjectiveC中实现观察者模式(也被称为广播者/监听者、发布/注册或者通知)的五种方法以及每种方法的价值所在。该文章将包括:1 手动广播者和监听者(Broadcaster and listeners)2 键-值观察(Key Value Obse转载 2012-07-04 16:24:49 · 10653 阅读 · 0 评论 -
UIButton
// UIButton *btnTest = [[UIButton alloc] initWithFrame:CGRectMake(10,10, 30, 30)]; UIButton *btnTest = [UIButton buttonWithType:UIButtonTypeRoundedRect]; btnTest.frame = CGRectMake(50, 50原创 2012-07-10 17:12:24 · 953 阅读 · 0 评论 -
UILabel
UILabel *labTest = [[UILabel alloc] initWithFrame:CGRectMake(10, 10, 100, 30)]; //设置字体大小 labTest.font = [UIFont systemFontOfSize:14.0]; UIFont *font = [UIFont fontWithName:@"Helvetica"原创 2012-07-10 16:06:44 · 881 阅读 · 0 评论 -
UITextField
需要加入UITextFieldDelegate协议- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UITextField *textTest = [[UITextField原创 2012-07-11 09:42:55 · 824 阅读 · 0 评论 -
UISlider
- (void)viewDidLoad{ [super viewDidLoad]; UISlider *sliderTest = [[UISlider alloc] initWithFrame:CGRectMake(20, 30, 280, 30)]; [sliderTest setTag:10]; sliderTest.minimumValue =原创 2012-07-11 10:29:53 · 538 阅读 · 0 评论 -
UISegmentedControl
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. //初始化个数 NSArray *segmentedArray = [[NSArray alloc]initWit原创 2012-07-11 11:31:02 · 598 阅读 · 0 评论 -
UISwitch
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UISwitch *switchTest =[[UISwitch alloc] initWithFrame:CGRectMa原创 2012-07-11 11:51:43 · 592 阅读 · 0 评论 -
UIImageView
- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. UIImageView *imgTest = [[UIImageView alloc] initWithFrame:CGRe原创 2012-07-11 16:23:18 · 592 阅读 · 0 评论 -
UITableView
1:创建一个简单的table- (void)viewDidLoad{ [super viewDidLoad]; // Do any additional setup after loading the view, typically from a nib. DataTable = [[UITableView alloc] initWithFrame:CGR原创 2012-07-31 14:46:43 · 1813 阅读 · 0 评论