ios7

Keyboard hides iOS input fields in PhoneGap Build 3.1 with an iFrame/object and JQTouch

折月煮酒 提交于 2020-01-02 18:04:14
问题 I'm developing an app that loads a form from another website into an iFrame. The iFrame is set to 100% width and height while displayed. That website has JQTouch. When I touch an input field in iOS 7 on the iPhone, the keyboard pops up and covers the input fields. It doesn't scroll, resize, or even let me scroll down to see the input field. If I type and then close the keyboard, nothing happens. I've tried everything I've come across. Adding/removing height=device-height in the meta viewport

Is it possible to use iOS 7 UIViewController transitions (interactive specifically) with child view controllers?

▼魔方 西西 提交于 2020-01-02 15:25:26
问题 There's many tutorials floating around about using the new iOS 7 UIViewController transitions API and the great new interactive transition API. However, none of these seem to reference adding and removing child view controllers interactively, despite in the WWDC 2013 video on Custom UIViewController Transitions the Apple employee shows what I would imagine to be a child view controller presented with a custom transition: (I'm assuming this as a view controller is shown on top of another one

Navigationbar title alignment issue

自闭症网瘾萝莉.ら 提交于 2020-01-02 15:03:11
问题 I have set custom view as navigation bar titleView, when page is first view controller title is shown correctly in center but when view controller is pushed from another view controller title is shifted to right Code : -(void)setUpTwoLineNavigationTitle { CGFloat width = 0.95 * self.view.frame.size.width; UIView *contentView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, width, 44)]; contentView.backgroundColor = [UIColor clearColor]; CGRect titleRect = contentView.frame; titleRect.origin.y

How to check if is iPhone 5 in iOS 7?

蓝咒 提交于 2020-01-02 10:33:52
问题 I have iphone app in which I was till now successfully checking is iphone 5 with following code (in my Prefix.pch file): #define IS_IPHONE_5 ( fabs( ( double )[ [ UIScreen mainScreen ] bounds ].size.height - ( double )568 ) < DBL_EPSILON ) Now when I run on my iPhone 5, I get this height in log: 480 ([[UIScreen mainScreen] bounds].size.height) I've updated my iPhone on iOS 7. Is there some other way to check if is iPhone 5 (or height of screen)? UPDATE: I have on my MAC OSX 10.8.5 UPDATE 2: I

AVCaptureDevice videoZoomFactor always Out of Range

别说谁变了你拦得住时间么 提交于 2020-01-02 10:05:34
问题 I'm trying to set the zoom level of a camera by this code: AVCaptureDevice *videoDevice = [AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo]; if ([videoDevice lockForConfiguration:nil]) { float newzoom=1.3; videoDevice.videoZoomFactor = newzoom; [videoDevice unlockForConfiguration]; } This code doesn't not works in ios 7(it works in ios 9), it cause always an exception: Terminating app due to uncaught exception 'NSRangeException', reason: 'videoZoomFactor out of range' I can't find

Terminating with uncaught exception of type NSException (xcode 6)

限于喜欢 提交于 2020-01-02 10:03:06
问题 Terminating app due to uncaught exception: 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ViewController" nib but the view outlet was not set. I am getting this error in xcode 6. I know how to set view outlet in xcode 5 or below version (go to connection inspector drag outlet radio button to file's Owner then it pop with a view and then click on view sets the outlet) but view popup is not comming in xcode 6 (beta). Is it a xcode 6

Terminating with uncaught exception of type NSException (xcode 6)

*爱你&永不变心* 提交于 2020-01-02 10:02:52
问题 Terminating app due to uncaught exception: 'NSInternalInconsistencyException', reason: '-[UIViewController _loadViewFromNibNamed:bundle:] loaded the "ViewController" nib but the view outlet was not set. I am getting this error in xcode 6. I know how to set view outlet in xcode 5 or below version (go to connection inspector drag outlet radio button to file's Owner then it pop with a view and then click on view sets the outlet) but view popup is not comming in xcode 6 (beta). Is it a xcode 6

Apple Web Clips (Apple Touch Icons) not working for site with HTTPS

穿精又带淫゛_ 提交于 2020-01-02 09:29:47
问题 I'm having difficulty getting the Apple Touch Icon to show up for the "Add Bookmark" feature in Safari when I have HTTPS enabled for the site. I can get it working with the "Add to Home" option, so I'm not sure if a different call is being made for "Add Bookmark". I've followed the Apple Documentation, which does not contain very much info. I also found the following links to be somewhat helpful: http://www.jonathantneal.com/blog/understand-the-favicon/ https://github.com/audreyr/favicon

How to lock device orientation in iOS 7 and iOS 8

谁说我不能喝 提交于 2020-01-02 07:19:09
问题 I have a problem with my app. I cannot lock the orientation of my app. All I need to do is to lock one view controller to landscape mode and the rest are portrait. This is hierarchy of my app. *Navigation Controller *TabBarController *ViewControllers 回答1: You only have to return NO from shouldAutorotate and the landscape orientation from supportedInterfaceOrientation in the one you want to be in landscape. On the other, return NO too from shouldAutorotate method and portrait orientations mask

Render Title of MKPolygon

断了今生、忘了曾经 提交于 2020-01-02 07:10:19
问题 I'm trying to render MKPolygon using the following code: NSMutableArray *overlays = [NSMutableArray array]; for (NSDictionary *state in states) { NSArray *points = [state valueForKeyPath:@"point"]; NSInteger numberOfCoordinates = [points count]; CLLocationCoordinate2D *polygonPoints = malloc(numberOfCoordinates * sizeof(CLLocationCoordinate2D)); NSInteger index = 0; for (NSDictionary *pointDict in points) { polygonPoints[index] = CLLocationCoordinate2DMake([[pointDict valueForKeyPath:@