Xcode5.1 Release Notes
- https://developer.apple.com/library/ios/releasenotes/DeveloperTools/RN-Xcode/Introduction/Introduction.html
- 気になる変更点を以下に記述
Quick Lookの実装
- UIImageやNSStringやCGPointやUIColorなどいくつかのオブジェクトのデータが、break pointしているときに見ることができる。
- NSURLとかおしゃれに該当のページが見れたりする
https://developer.apple.com/wwdc/videos/?id=407
https://developer.apple.com/wwdc/videos/?id=413
Storyboard(Interface builder)の変更
- constraintのタイプがいくつか増えた。
- cross attribute attributes:
view1.centerY = view2.bottom
- including alignment contraint:
view1.leading <= view2.leading
- equal size constraints:
view1.width >= view2.width
- decimal number:
0.5
- aspect ratio:
1:2
- cross attribute attributes:
Deprecations
- OCUnitとSenTestingKit frameworkがdeprecatedに
- “Edit > Refactor > Convert to XCTest…”でconvertできる
iOS7.1 Release Notes
運営しているアプリで起きたiOS7.1にUpdateしたことによる問題
- Interface builder上でTabBarのTintColorを指定していたがうまく動いてなかった
- viewControllerの中で指定すると治った
- TableViewCellのClipSubviewをオフにしているにも関わらず、Clipされている
- XcodeをUpdateしてbuildすると治った
運営しているアプリで起きたXcode5.1にUpdateしたことによる問題
- TableCellの中のContentViewのClipSubviewではなくTableCellのClipSubviewを指定する必要がある
- リリースしているアプリでは起きていない問題
運営しているアプリで起きたwarningの事例
ImageViewのreadwriteの設定でwarning
Auto property synthesis will not synthesize property 'imageView' because it is 'readwrite' but it will be synthesized 'readonly' via another property
@property (nonatomic, weak) IBOutlet UIImageView *imageView;
->
@property (nonatomic, weak, readonly) IBOutlet UIImageView *imageView;
参照のないStoryboardのViewControllerでwarning
- まだ実装してない作業途中のstoryboardでwarningが出ていた
- ControllerにIdenfiterをつける、いらないなら削除する
warning: Unsupported Configuration: Scene is unreachable due to lack of entry points and does not have an identifier for runtime access via -instantiateViewControllerWithIdentifier:.
ImageViewでHighlightedがOnになっている
- ImageViewのHighlightedのチェックを外す
warning: Attribute Unavailable: Highlighted property is only for display within Interface Builder (The value set for this property will not be present at runtime)