ios7

Weird CSS stretching issue in iOS7 Safari and Chrome

╄→гoц情女王★ 提交于 2021-02-06 19:56:04
问题 Since upgrading to iOS 7 on multiple iPhones and iPads, we've seen something very strange happening to part of the UI on our website. The pink box in the image attached is within an absolutely positioned parent and it has two white divs positioned absolutely within it, each with differing opacities. The pink circle is just a div that has border-radius set to make it a circle. There are no images at all in this layout. For some reason, the browser is intermittently stretching the pink div, but

UITableViewCell top shadow is covered by UITableView header view

て烟熏妆下的殇ゞ 提交于 2021-01-27 17:17:39
问题 I have a UITableView with a custom HeaderView (added via storyboard). I want to put a drop shadow on the first cell in the table view. Unfortunately, the header view covers the shadow. I am making the shadow in cellForRowAtIndexPath with: [cell setClipsToBounds:NO]; [cell.layer setMasksToBounds:NO]; [cell.layer setShadowOffset:CGSizeMake(0, 2)]; [cell.layer setShadowColor:[[UIColor blackColor] CGColor]]; [cell.layer setShadowRadius:4.0]; [cell.layer setShadowOpacity:1.0]; [cell.layer

iOS 7 storyboard localization with attributed Labels

自作多情 提交于 2021-01-27 04:57:06
问题 I am generating my String- Files with ibtool from my Base Storyboard for all my languages...For some reason ibtool is not extracting UILabel s with style "attributed"... I have no Key/Value Pair for those labels...Does somebody has a clue why?! 回答1: I ended up concluding that it couldn't be done using ibtool in the present version. Instead I let the Textview be a plain text view and, using my subclass, parsed its text property so I could make a NSMutableAttributedString and set the needed

iOS 7 storyboard localization with attributed Labels

我是研究僧i 提交于 2021-01-27 04:56:48
问题 I am generating my String- Files with ibtool from my Base Storyboard for all my languages...For some reason ibtool is not extracting UILabel s with style "attributed"... I have no Key/Value Pair for those labels...Does somebody has a clue why?! 回答1: I ended up concluding that it couldn't be done using ibtool in the present version. Instead I let the Textview be a plain text view and, using my subclass, parsed its text property so I could make a NSMutableAttributedString and set the needed

preferredContentSize does not shrink

时光怂恿深爱的人放手 提交于 2021-01-27 04:21:30
问题 I use UIPopoverController to popover a window. I use preferredContentSize to set the size. Then, I use Push a new view controller with larger size. When the child view pop up, I like to recover the window to original size. But seems not work. I already put the self.preferredContentSize = myWindowSize; But it seems can not recover. In iOS6 or before, I set the contentSizeForViewInPopover to CGSizeZero, then set the proper size. But on iOS7, it will make the popup disappear. 回答1: This solved it

ios7 error when submitting an update. this bundle does not support one or more devices

情到浓时终转凉″ 提交于 2021-01-27 01:29:22
问题 application context: ios7, xcode 5, written with titanium appcelerator (sdk 3.1.3GA), previous version compatibility was as the image says (directly from itunes connect) the complete error is this bundle does not support one or more devices. supported by the revious app version. your app update must continue to support all devices previously supported. your declare supported device in Xcode with the Targeted Device Family build setting. Refer to QA1623 for additional information: https:/

Is it possible to do an edge swipe in iOS simulator?

孤人 提交于 2021-01-21 13:43:39
问题 iOS 7 provides for a UIScreenEdgePanGestureRecognizer which detects swipes in from edges of the screen. Can this gesture be simulated using the iOS7 simulator in Xcode? Clicking and dragging outside the screen area just moves the whole simulator frame around. 回答1: You don't have to swipe across the edges to trigger a UIScreenEdgePanGestureRecognizer , just start very close to the edge. It works if I start not more than ~15 points from the edge. (this if for the simulator. I never tested this

Is it possible to do an edge swipe in iOS simulator?

你离开我真会死。 提交于 2021-01-21 13:41:04
问题 iOS 7 provides for a UIScreenEdgePanGestureRecognizer which detects swipes in from edges of the screen. Can this gesture be simulated using the iOS7 simulator in Xcode? Clicking and dragging outside the screen area just moves the whole simulator frame around. 回答1: You don't have to swipe across the edges to trigger a UIScreenEdgePanGestureRecognizer , just start very close to the edge. It works if I start not more than ~15 points from the edge. (this if for the simulator. I never tested this

Detecting Shake Gesture by CoreMotion

人走茶凉 提交于 2020-12-06 15:56:31
问题 I want to detect device shake using coreMotion framework for iOS 7. Can anyone help me out how to do this ? I wrote code described below in my viewDidAppear CMMotionManager *motionManager = [[CMMotionManager alloc] init]; motionManager.deviceMotionUpdateInterval = 1.0/60.0; __block double myAcceleration; [motionManager startDeviceMotionUpdatesToQueue:[NSOperationQueue mainQueue] withHandler:^(CMDeviceMotion *motion, NSError *error) { myAcceleration = motion.userAcceleration.y; CATransform3D

Detecting Shake Gesture by CoreMotion

北战南征 提交于 2020-12-06 15:56:18
问题 I want to detect device shake using coreMotion framework for iOS 7. Can anyone help me out how to do this ? I wrote code described below in my viewDidAppear CMMotionManager *motionManager = [[CMMotionManager alloc] init]; motionManager.deviceMotionUpdateInterval = 1.0/60.0; __block double myAcceleration; [motionManager startDeviceMotionUpdatesToQueue:[NSOperationQueue mainQueue] withHandler:^(CMDeviceMotion *motion, NSError *error) { myAcceleration = motion.userAcceleration.y; CATransform3D