Xcode 7 新特性讨论贴

2015 年 6 月 9 日
 banxi1988

见: 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.
}

也就是说实际在用户的设备中,在编译期就减少了很多运行分支,也减少了应用的体积.

  1. InterfaceBuilder 提供了对多Storyboard中关联支持:

    • Interface Builder supports placeholder references for scenes in other storyboards, and segues that cross
    storyboard boundaries.
    之前我使用过 AOLinkedSegue来处理这种问题.

  2. Objective-C 中的集合类型,也支持的类型声明,可以更好的转译成 Swift 接口
    如:

NSArray<UIImage *> *images;
NSDictionary<NSString *, NSURL *> *resourcesByName;

PS: Xcode 7 正在下载中,希望 Playground 可以跑得更快了,(之前的体验是经常,出错了,就不动了,经常重新打开)

7553 次点击
所在节点    Xcode
15 条回复
hdbean
2015 年 6 月 9 日
Sorry, you cannot view this page.
janxin
2015 年 6 月 9 日
janxin
2015 年 6 月 9 日
这个应该是限制了来源...一不小心居然连接发出去了...
powtop
2015 年 6 月 9 日
能否appstore 直接更新
run2
2015 年 6 月 9 日
@janxin 你有同意保密协议的,看不到就算了,不用贴出来。
kavi
2015 年 6 月 9 日
伸手党求一个百度盘的下载
fly2never
2015 年 6 月 9 日
fly2never
2015 年 6 月 9 日
UIStackView不错
fly2never
2015 年 6 月 9 日
banxi1988
2015 年 6 月 9 日
@powtop beta 版本向来不能 App Store直接更新.
其实 App Store直接更新也是全新下载的.
miromelo
2015 年 6 月 9 日
@fly2never
终于有这货了,当年WP的StackPanel好用到哭
marginleft
2015 年 6 月 9 日
@kavi 有些地方从官方下载比较慢,可以到百度网盘下载:
http://pan.baidu.com/s/1hqiukra
kavi
2015 年 6 月 9 日
@marginleft 感谢!
thedevil5032
2015 年 6 月 9 日
thedevil5032
2015 年 6 月 9 日
Swift 2.0 @testable import 可以直接测试 internal entities

这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。

https://www.v2ex.com/t/197130

V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。

V2EX is a community of developers, designers and creative people.

© 2021 V2EX