ios8

ios 8 periodic background process even after app termination

自闭症网瘾萝莉.ら 提交于 2019-12-13 06:00:33
问题 NOTE: This app I am working on is completely for my own usage and will not be on app store so please don't give answers referring that. I want my app to do some process in background or after termination (double tap the home button and swipe the app from applications multitask) every few minutes. The process is very very light and quick so it won't drain the battery. This process shouldn't require internet connection. I have seen some answers here like and I will explain what are the problems

Why is my Toolbar getting chopped off in compact size?

强颜欢笑 提交于 2019-12-13 05:39:09
问题 As can be seen below, my toolbar gets chopped off in the compact size: My UI consists of a ToolBar and a WebView. The constraints I tried don't work, although I did get them to turn blue. As you can see, my toolbar is pinned to the top, the left side, and the right side (I also set a constant height). How can I get my toolbar to display correctly in the compact size. Thanks. Edit1: Edit2: Here is what I did to get things to display correctly: I had to drag the edges of the WebView all the way

iOS 8.4 - iboutlet not populating in programmatically created view controllers

旧巷老猫 提交于 2019-12-13 05:22:45
问题 When loading a UIViewController programmatically in iOS 8.4 I am consistently seeing the IBOutlets registering as nil. This is causing crashes on any iOS 8.4 device. The exact same code runs smoothly on iOS 9 and 9.0.1. For reference, this is a snippet of the view controller class B8AVPermissionsViewController: B8BaseViewController { @IBOutlet weak var closeButton: UIButton! @IBOutlet weak var cameraButton: UIButton! @IBOutlet weak var microphoneButton: UIButton! var delegate:

SpriteKit: EXC_BAD_ACCESS SpriteKit`SKCShapeSprite::getAccumulatedBounds() crash

不问归期 提交于 2019-12-13 05:04:50
问题 After upgrading to iOS8, SpriteKit game crashes with EXC_BAD_ACCESS. It happens for no apparent reason, after playing a bit, at random time. No info from Exception breakpoint and NSZombie detection, so no way to detect the line in the code that causes the error. Checked both on a simulator and a device. The backtrace: * thread #1: tid = 0x13fa2, 0x2b3977f0 SpriteKit`SKCShapeSprite::getAccumulatedBounds() const + 84, queue = 'com.apple.spritekit.renderQueue', stop reason = EXC_BAD_ACCESS (code

iOS8 GKLocalPlayerInternal Unrecognized Selector

落爺英雄遲暮 提交于 2019-12-13 05:03:24
问题 Just installed ios8 on my device and am now receiving this error: -[GKLocalPlayerInternal name]: unrecognized selector sent to instance 0x1b6e3f80 I do not see this error on two other devices with ios7 installed. On my device with ios8 installed I have already verified that GameCenter Sandbox is enabled by going to settings -> GameCenter -> Check "Sandbox" I can avoid the error by commenting out this code below: // after checking that game center is available and authentication handler has

Writing/reading to paths with interleaved double dots fails on iOS 8

筅森魡賤 提交于 2019-12-13 04:59:25
问题 This code fails on iOS 8, although it would work on iOS 7 UIImage *imageTest = ... NSString *file = @"../Documents/Test.png"; NSString *fullpath = [[[NSBundle mainBundle] bundlePath] stringByAppendingPathComponent: file]; [UIImagePNGRepresentation(imageTest) writeToFile: fullpath atomically: YES]; UIImage *image = [UIImage imageNamed: file]; On iOS 8 I need to use this instead NSString *file = [[NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES) objectAtIndex:0]

IPhone6/6plus landscape status bar hidden

霸气de小男生 提交于 2019-12-13 04:55:00
问题 This is an extension of this thread regarding displaying status bar for iOS8. Unfortunately, I needed to enable my apps to display the status bar on landscape orientation regardless of fixed or rotated. With my answer on this thread, the behaviour on the iPhone6 Simulator (not sure on actual device for now) the status bar doesn't get displayed. Yet when the application is resumed from other application or home screen it gets displayed. Is this normal? 回答1: No that is not normal, however you

iOS - How to push to a view controller and maintain the correct “View Stack” when going back

一曲冷凌霜 提交于 2019-12-13 04:50:29
问题 I've got a single navigation controller that houses the primary view of the app (A dashboard of sorts) which then branches off to the other views in the app via segues etc.. There's a hamburger menu, which makes use of a Cocoa Pods sliding view controller. Basically, my question is is it possible to navigate to specific view controllers via the menu and maintain the correct "stack" going back. I'm aware you can just push to a single controller, but I'd like (if possible) to retain the view

Center multiple views with varying height using autolayout

你离开我真会死。 提交于 2019-12-13 04:47:35
问题 This answer: https://stackoverflow.com/a/25898949/1364053 is suitable for my problem to some extent. What I need is there are three views in my container view. The middle one is a scroll view. If I pin height and width of all three views and use the ratio method as described in the above link, all works fine. But I need the middle scrollview to grow to some extent, let's say the current height of the scroll view is 30, If the device height is increased it should grow to a max of 40 but not

CocoaPods version control, must use pod install when cloning repo

被刻印的时光 ゝ 提交于 2019-12-13 04:33:14
问题 I have a question about using CocoaPods and working with version control. I have my project on a repo at GitLab. But if someone wants to clone that repo and work on it they have to use the pod install command. I thought that if you push you project with pods to a repo you don't have to use pod install when cloning it. Or is it something I have done wrong? This is how the current .gitignore file looks: xcschememanagement.plist Pods-AFNetworking.xcscheme Pods.xcscheme Breakpoints_v2.xcbkptlist