Your SlideShare is downloading. ×
20121201yidev hirobe iPad miniでRetina
Upcoming SlideShare
Loading in...5
×

Thanks for flagging this SlideShare!

Oops! An error has occurred.

×

Introducing the official SlideShare app

Stunning, full-screen experience for iPhone and Android

Text the download link to your phone

Standard text messaging rates apply

20121201yidev hirobe iPad miniでRetina

1,959
views

Published on


0 Comments
5 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total Views
1,959
On Slideshare
0
From Embeds
0
Number of Embeds
2
Actions
Shares
0
Downloads
10
Comments
0
Likes
5
Embeds 0
No embeds

Report content
Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
No notes for slide
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • \n
  • Transcript

    • 1. iPad miniでRetina hirobe
    • 2. 自己紹介• 広部一弥 @hirobe• miil (FrogApps)• SpeedText
    • 3. iPad miniでましたね•すごくいい• すごくいい• すごくいい
    • 4. iPad miniでましたね• すごくいい• すごくいい• すごくいい• not Retina
    • 5. iPhoneアプリもNot Retina
    • 6. iPhoneアプリは Retinaにできるでしょ(解像度的に)
    • 7. Retinaに
    • 8. やりかたview.contentScaleFactor = 2.0f;
    • 9. 大丈夫なん?• もちろん at your own risk!!!!• ほんとはユニバーサルアプリ化するの が正しいよね
    • 10. UIImage• 読み込む方 そのままでおk UIImage *image = [UIImage imageWithData:data]; imageView.image = image;• リソース @2x.pngのみをバンドルする
    • 11. UIKitsubviewsのスケールを変更 - (void)rescaleSubviews:(UIView*)parentView { parentView.contentScaleFactor = 2.0f; if (parentView.subviews) { for (UIView *childView in parentView.subviews) { [self rescaleSubviews:childView]; } } }UIViewController等で [self rescaleSubviews:self.view.window]; [self rescaleSubviews:self.navigationController.navigationBar]; [self rescaleSubviews:self.view];
    • 12. どこで変更するか• UIViewController - (void)viewDidLayoutSubviews; (iOS5以上)• UIView - (void)layoutSubviews;• UITableViewCell - (UITableViewCell *)tableView: (UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath;
    • 13. 適応できないもの• キーボード、テキスト入力• UIWebView• etc.. この辺りをいじるとRejectされる?
    • 14. 問題点• 2倍モードじゃないと描画が荒くなる (RetinaじゃないiPhoneでも)
    • 15. おわり