LoginSignup
54
55

More than 5 years have passed since last update.

Xcode5.1(iOS7.1)の変更とアップデートに起きた問題の対応

Last updated at Posted at 2014-03-11

Xcode5.1 Release Notes

Quick Lookの実装

  • UIImageやNSStringやCGPointやUIColorなどいくつかのオブジェクトのデータが、break pointしているときに見ることができる。
  • NSURLとかおしゃれに該当のページが見れたりする

スクリーンショット 2014-03-11 10.23.17.png

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

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)
54
55
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
54
55