ios7

iOS 7 Access iPhone camera from Mobile Safari?

别说谁变了你拦得住时间么 提交于 2020-01-03 08:45:12
问题 In iOS 6 you could use something like this: <input type="file" accept="image/*" capture="camera"> <input type="file" accept="video/*" capture="camera"> http://jsfiddle.net/GAbW8/embedded/result/ But in iOS 7 you cannot access the camera anymore. Ideas? 回答1: Please try this: ...type="file" accept="image/*" capture> 来源: https://stackoverflow.com/questions/19097127/ios-7-access-iphone-camera-from-mobile-safari

ios7 keyboard, when it opens shrinks web-app

穿精又带淫゛_ 提交于 2020-01-03 07:22:25
问题 I have a web-app for iPad. The app uses the iPad keyboard, before when opening the keyboard it would cover the app, now with ios7 the app gets shrinked to the remaining space after the keyboard appears. Is it possible to change this in JavaScript, and keep the old behavior? EDIT: I just noticed that if I open the app on safari it works just like before, the problem appears when I add the app to the main screen. EDIT: I almost solved this, but then I got some other problems. First I added this

UISlider not animating in iOS7

大城市里の小女人 提交于 2020-01-03 06:44:09
问题 When I switched from iOS 6 to iOS 7 design, I noticed that using the method setValue:animated: no longer animates the sliding process. Has anyone else came across this problem and found a solution? I'll just add some code to show I've done nothing complicated: //Variable declaration IBOutlet UISlider *s; //Connected in the .xib //Button pressed - (IBAction)buttonPressed:(id)sender { [s setValue:1 animated:YES]; } And it jumps straight to 1 after I press the button. 回答1: Backwards compatible

How to make sliding menu with tabs in ios

落爺英雄遲暮 提交于 2020-01-03 06:17:10
问题 I am using ZUUIRevealController Library. Appdelegate.h file (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { UIWindow *window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]]; self.window = window; UITabBarController *tabBarController=[[UITabBarController alloc]init]; FrontViewController *frontViewController = [[FrontViewController alloc] init]; RearViewController *rearViewController = [[RearViewController alloc]

some font not showing in myapp from ios

对着背影说爱祢 提交于 2020-01-03 06:05:30
问题 There are Four font i using in myapp. i have adding four font ttf file in info.plist. i using each and every font. but only one font not working in my app. Font Lists are BellGothicStd-Light.ttf digiface.ttf rbno2-light-alternative.ttf EnhancedDotDigital-7.ttf Working fonts are 4,5,6. 7th font are not worked in my app What is the reason for that? Any not supporting font are in ios plateform. pls tell any solution for that. 回答1: The font is working just fine. Here are the steps I have followed

some font not showing in myapp from ios

跟風遠走 提交于 2020-01-03 06:05:04
问题 There are Four font i using in myapp. i have adding four font ttf file in info.plist. i using each and every font. but only one font not working in my app. Font Lists are BellGothicStd-Light.ttf digiface.ttf rbno2-light-alternative.ttf EnhancedDotDigital-7.ttf Working fonts are 4,5,6. 7th font are not worked in my app What is the reason for that? Any not supporting font are in ios plateform. pls tell any solution for that. 回答1: The font is working just fine. Here are the steps I have followed

iOS6 hidden status bar

别来无恙 提交于 2020-01-03 05:11:14
问题 In XCode 5 if I check Status Bar : Hide during application launch in project target settings. In iOS7 the application works as expected, after launch the app has status bar visible However in iOS6 is the status bar hidden after app launch Any suggestion how to make Status bar hidden during application launch, working on iOS6 and iOS7 ? 回答1: For iOS6 and below, we used to write a line of code in didFinishLaunchingWithOptions: as [UIApplication sharedApplication].statusBarHidden = YES; However

UISearchBar displaysSearchBarInNavigationBar

自闭症网瘾萝莉.ら 提交于 2020-01-03 05:07:13
问题 I want to replicate the functionality of the Twitter app where the search bar slides in to the navigation bar. However i have run into a problem. If i don't add [self.searchDisplayController setDisplaysSearchBarInNavigationBar:YES]; into viewDidLoad the bar will not appear. I have a search button in the righthand navigation item when i click it i call the above method. Is there anything i can do to ensure the search bar gets drawn Thanks Jonathan 回答1: You can add search bar on navigation bar.

iOS app running in the background

别说谁变了你拦得住时间么 提交于 2020-01-03 04:59:05
问题 I am trying to be able to set how long my app will remain in the background. I want to be able to have the control over how long my app can stay active in the background until it is closed. Is there something I can add to the Info.plist that can set that, with the bool that is the switch to have it run in the background or not? I have read and found that Apple doesn't let apps remain in the background for longer than 10min, but I have done some testing and found other live apps that are

Waiting for UITextView to Finish Updating Text (iOS 7.1)

佐手、 提交于 2020-01-03 04:32:21
问题 I'm programatically updating the attributedText of a UITextView . Following the update I want to call setContentOffset so that I can scroll to position the new text. The problem I'm having is that there's a delay in the text view updating its text. With the following code the debug log outputs the same value: - (void)appendToTextView:(NSString*)text { CGFloat bottomOfCurrentContent = _pastedText.contentSize.height; NSLog(@"Bottom of content, before = %f", bottomOfCurrentContent); NSString*