20121201yidev hirobe iPad miniでRetina
- 12. UIImage
? iみzむ圭
そのままでおk
UIImage *image = [UIImage imageWithData:data];
imageView.image = image;
? リソ`ス
@2x.pngのみをバンドルする
- 13. UIKit
subviewsのスケ`ルを筝
- (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];
- 14. どこで筝するか
? UIViewController
- (void)viewDidLayoutSubviews;
(iOS5參貧)
? UIView - (void)layoutSubviews;
? UITableViewCell
- (UITableViewCell *)tableView:
(UITableView *)tableView
cellForRowAtIndexPath:(NSIndexPath
*)indexPath;
Editor's Notes
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n
- \n