见: http://adcdownload.apple.com/WWDC_2015/Xcode_7_beta/Xcode_7_beta_Release_Notes.pdf
有几个更新是我最喜欢的了:
1. 真机调试不再需要 Program了 见 Xcode 7
2. AppTinning 技术中提到: 提交的应用包含的是bitcode 一种 LLVM中间码,而不是二进制了
Bitcode. Archive for upload to the App Store in an intermediate LLVM binary representation that the store
can then optimize into the 64 or 32-bit executable to be delivered to customers.
这样使得下面这样的代码显得很自然:
if #available(iOS 8.0, OSX 10.10, *) {
// Use Handoff APIs when available.
let activity =
NSUserActivity(activityType:"com.example.ShoppingList.view")
activity.becomeCurrent()
} else {
// Fall back when Handoff APIs not available.
}
也就是说实际在用户的设备中,在编译期就减少了很多运行分支,也减少了应用的体积.
InterfaceBuilder 提供了对多Storyboard中关联支持:
• Interface Builder supports placeholder references for scenes in other storyboards, and segues that cross
storyboard boundaries.
之前我使用过 AOLinkedSegue来处理这种问题.
Objective-C 中的集合类型,也支持的类型声明,可以更好的转译成 Swift 接口
如:
NSArray<UIImage *> *images;
NSDictionary<NSString *, NSURL *> *resourcesByName;
PS: Xcode 7 正在下载中,希望 Playground 可以跑得更快了,(之前的体验是经常,出错了,就不动了,经常重新打开)
1
hdbean 2015 年 6 月 9 日
Sorry, you cannot view this page.
|
2
janxin 2015 年 6 月 9 日
|
3
janxin 2015 年 6 月 9 日
这个应该是限制了来源...一不小心居然连接发出去了...
|
4
powtop 2015 年 6 月 9 日
能否appstore 直接更新
|
6
kavi 2015 年 6 月 9 日
伸手党求一个百度盘的下载
|
7
fly2never 2015 年 6 月 9 日
|
8
fly2never 2015 年 6 月 9 日
UIStackView不错
|
9
fly2never 2015 年 6 月 9 日
|
12
marginleft 2015 年 6 月 9 日 |
13
kavi 2015 年 6 月 9 日
@marginleft 感谢!
|
14
thedevil5032 2015 年 6 月 9 日 via iPhone
|
15
thedevil5032 2015 年 6 月 9 日 via iPhone
Swift 2.0 @testable import 可以直接测试 internal entities
|