Upgrade to Pro — share decks privately, control downloads, hide ads and more …

お手軽iPad対応

 お手軽iPad対応

ninjinkun

May 30, 2013
Tweet

More Decks by ninjinkun

Other Decks in Technology

Transcript

  1. ΞδΣϯμ • ૊ΈࠐΈUIΫϥε • UIViewAutoresizing • UIView • Ϟʔμϧ •

    ϦιʔεϑΝΠϧ • ϨΠΞ΢τΫϥεͷ෼཭ • ճసରԠ Thursday, May 30, 13
  2. ϨΠΞ΢τΫϥεͷ෼཭ • ෳࡶͳϨΠΞ΢τʹ͸PositionΫϥεΛఆٛ • ViewͷϨΠΞ΢τ৘ใΛ෼཭ͨ͠Ϋϥε • CGRectΛͨ͘͞Μ࣋ͬͯΔ • ͜ͷΫϥεΛ෯Մมʹ͢Ε͹ରԠ׬ྃ @interface

    BookmarkEntryPosition : NSObject @property (nonatomic, assign) CGFloat cellHeight; @property (nonatomic, assign) CGRect titleRect; @property (nonatomic, readonly, assign) CGRect faviconRect; @property (nonatomic, assign) CGRect countRect; @property (nonatomic, assign) CGRect contentRect; @property (nonatomic, assign) CGRect imageRect; @property (nonatomic, assign) CGRect countLineRect; @property (nonatomic, strong) NSArray *favoriteRects; Thursday, May 30, 13
  3. ճసରԠ • iPadΞϓϦ͸ճస͠ͳ͍ͱϦδΣΫτ • UIViewAutoresizingͳͲͪΌΜͱ΍ͬͯΕ͹೉͘͠ͳ͍ • ճస࣌ʹlayoutSubviews͕ݺ͹ΕΔ • iOS 5ͱ6ͷࠩʹ஫ҙ

    • iOS 5ͳΒҎԼͰOK • ৄ͘͠͸ʮiOS 6 ͷAuto RotationʯΛࢀর -(BOOL)shouldAutorotateToInterfaceOrientation: (UIInterfaceOrientation)toInterfaceOrientation { return UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad; } Thursday, May 30, 13