ipad

ipad 2 camera support detection

别等时光非礼了梦想. 提交于 2020-02-02 05:19:07
问题 I have an app that uses the following Macro: #define IS_IPAD ([[UIDevice currentDevice] respondsToSelector:@selector(userInterfaceIdiom)] && [[UIDevice currentDevice] userInterfaceIdiom] == UIUserInterfaceIdiomPad) which works very well for me. However, I was using it to turn off the option of taking a photo in the app. How can I detect if the camera option is available regardless of device? 回答1: [UIImagePickerController isSourceTypeAvailable:UIImagePickerControllerSourceTypeCamera]; That

App running slowly because of UIImageViews

走远了吗. 提交于 2020-01-31 18:28:25
问题 I have three large UIImageViews displaying images within my iPad app (each is almost the size of the screen, and they have special effects such as rotation, shadows , etc to look like a news stack). When these images are displayed, the app runs VERY SLOWLY . UIAlertViews literally look like they have only two frames when they are presented and animations aren't even laggy... they're worse! But when I do not present the UIImageViews, everything works quickly and elegantly. Obviously I'm doing

App running slowly because of UIImageViews

瘦欲@ 提交于 2020-01-31 18:28:08
问题 I have three large UIImageViews displaying images within my iPad app (each is almost the size of the screen, and they have special effects such as rotation, shadows , etc to look like a news stack). When these images are displayed, the app runs VERY SLOWLY . UIAlertViews literally look like they have only two frames when they are presented and animations aren't even laggy... they're worse! But when I do not present the UIImageViews, everything works quickly and elegantly. Obviously I'm doing

UI Issue with kal calendar for ipad?

回眸只為那壹抹淺笑 提交于 2020-01-30 14:56:12
问题 I have UI issue with Kal Calendar for iPad. On the iPad there is an empty space but on the iPhone it's fine. How can i get it to fit in the frame on the iPad? if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPhone) { [kal.view setFrame:CGRectMake(0, 0, self.view.frame.size.width, self.view.frame.size.height)]; } else if (UI_USER_INTERFACE_IDIOM() == UIUserInterfaceIdiomPad) { [kal.view setFrame:CGRectMake(0, 0,768 ,1004)]; } I tried to use the code listed above but it did not work for me!

App store review guidelines 2.10 - should iPhone app be adjusted to iPad?

流过昼夜 提交于 2020-01-29 21:07:39
问题 I find paragraph 2.10 of App store review guidelines a bit ambiguous. It says : "iPhone Apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution" My app is deployment target is iphone and the supposed device orientation is portait When I tested my app on ipad simulator it looks as follows: This is just a piece of the view to give you the notion of how it actually look like - the app view does not fit the whole frame of ipad simulator. The reason

App store review guidelines 2.10 - should iPhone app be adjusted to iPad?

无人久伴 提交于 2020-01-29 21:04:39
问题 I find paragraph 2.10 of App store review guidelines a bit ambiguous. It says : "iPhone Apps must also run on iPad without modification, at iPhone resolution, and at 2X iPhone 3GS resolution" My app is deployment target is iphone and the supposed device orientation is portait When I tested my app on ipad simulator it looks as follows: This is just a piece of the view to give you the notion of how it actually look like - the app view does not fit the whole frame of ipad simulator. The reason

Create inner shadow in UIView [duplicate]

China☆狼群 提交于 2020-01-28 20:12:48
问题 This question already has answers here : Inner shadow effect on UIView layer? (17 answers) Closed 6 years ago . I would like create an inner shadow on my UIView on iPad like that : This UIView could change size so I can't use a simple image to create this kind of shadow. I have tested with setShadow etc., but it's only a dropshadow that is created. Any idea how to create this kind of shadow? 回答1: Create the shadow as a transparent layer at a particular size, then create a stretchable image,

Create inner shadow in UIView [duplicate]

你说的曾经没有我的故事 提交于 2020-01-28 20:12:13
问题 This question already has answers here : Inner shadow effect on UIView layer? (17 answers) Closed 6 years ago . I would like create an inner shadow on my UIView on iPad like that : This UIView could change size so I can't use a simple image to create this kind of shadow. I have tested with setShadow etc., but it's only a dropshadow that is created. Any idea how to create this kind of shadow? 回答1: Create the shadow as a transparent layer at a particular size, then create a stretchable image,

Create inner shadow in UIView [duplicate]

ぃ、小莉子 提交于 2020-01-28 20:08:48
问题 This question already has answers here : Inner shadow effect on UIView layer? (17 answers) Closed 6 years ago . I would like create an inner shadow on my UIView on iPad like that : This UIView could change size so I can't use a simple image to create this kind of shadow. I have tested with setShadow etc., but it's only a dropshadow that is created. Any idea how to create this kind of shadow? 回答1: Create the shadow as a transparent layer at a particular size, then create a stretchable image,

Create inner shadow in UIView [duplicate]

狂风中的少年 提交于 2020-01-28 20:05:56
问题 This question already has answers here : Inner shadow effect on UIView layer? (17 answers) Closed 6 years ago . I would like create an inner shadow on my UIView on iPad like that : This UIView could change size so I can't use a simple image to create this kind of shadow. I have tested with setShadow etc., but it's only a dropshadow that is created. Any idea how to create this kind of shadow? 回答1: Create the shadow as a transparent layer at a particular size, then create a stretchable image,