1 / 13
文档名称:

ios版本的helloworld.pdf

格式:pdf   页数:13页
下载后只包含 1 个 PDF 格式的文档,没有任何的图纸或源代码,查看文件列表

如果您已付费下载过本站文档,您可以点这里二次下载

分享

预览

ios版本的helloworld.pdf

上传人:紫岑旖旎 2012/9/15 文件大小:0 KB

下载得到文件列表

ios版本的helloworld.pdf

文档介绍

文档介绍:记事本
ios版本的helloworld
2012-06-01 11:32 553人阅读评论(1) 收藏举报
      
          ,安装 xcode  时老是提示安装失败,后来网上查了下,把
,才能安装成功。第一次写ios程序啊,程序相当简单,就一个helloworld  点击按钮触发
alert事件
      开发环境 mac    
     开发步骤
1. 下载安装  
 
View   Application

Rect Button控件到界面里面

***@interface ViewController : UIViewController
{
    IBOutlet UIButton * btn;
}
-(IBAction)btnPressed:(id)sender;
 加入代码
-(void)btnPressed:(id)sender
{
    NSLog(@"33333333");
    
    UIAlertView *alert =[[UIAlertView alloc] initWithTitle:@"hello" 
                                                   message:@"zhu"
                                                  delegate:self 
                                         cancelButtonTitle:@"ok" 
                                           otherButtonTitles:nil];
    [alert show];
}
Up Inside  跟 btnPressed, Referencing Outlets跟btn的关联
1

2
,需要进行xcode破解
3
12.  在的越狱的板子上运行效果
4
5
备注:

点击Jailbreak ,最后提示Done,enjoy!越狱完成
for ios +


实用工具-钥匙串访问-证书助手-创建证书 名称填写:iPhone Developer   选中让我覆盖这些默认值  后面填好
电子邮箱地址  选中代码签名其他的默认就可以了
6

改/Applications//Developer/SDKs/
dk目录下的 
中<key>CODE_SIGNING_REQUIRED</key>
<string>YES</string>
<key>ENTITLEMENTS_REQUIRED</key>
<string>YES</string>
YES 改为NO
7
 /Applications/ 
XCiPhoneOSCodeSignContext odeSignContext
(需联网)
mkdir /Applications/
cd /Applications/
curl -O one/gen_entitl