Xcode4.2中添加Window-Based Application模板


本想在Xcode4.2下一直用StoryBoard做书上写的例子的

后来工程大了 appDelegate和viewController多了,在哪实例话、在哪调用窗口真有点儿弄不清……


下边是一老外的办法,试过了 没问题,导入后ARC默认是关闭的


Window-Based Application

Postby JoeConway » Wed Dec 07, 2011 4:08 pm

The Window-Based application template is gone in iOS 5.0. Additionally, templates come with ARC on by default. There's been a bit of discussion on some temporary fixes, but now I have a real fix after figuring out how to manipulate the templates. This is now *the* solution to the problem.

Here's how to make yourself fully compatible with the book:
1. Download the following file:  http://www.bignerdranch.com/solutions/Templates.zip
(this URL is case-sensitive)

2. Navigate to ~/Library/Developer/Xcode/ in Finder.
(by default, ~/Library is hidden. You can use the keyboard shortcut Command-Shift-G in the Finder and enter this path to get to that directory)

3. Unzip the Templates.zip file and add the Templates directory it creates to ~/Library/Developer/Xcode

Now, when you create a new project, there will be an option for Window-Based Application.

Enjoy and share.





  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值