ios8

UIAlertView and UIActionSheet not displaying properly in iOS 8

做~自己de王妃 提交于 2019-12-21 05:09:24
问题 UIAlertView and UIActionSheet not displaying properly in iOS 8, its hiding the view controller, also In alert view title is not displaying. I am running the app from Xcode 5.1.1. 回答1: Did you added any category for ViewController in your application. like below shown @implementation UIViewController (CustomeAction) - (void)setTitle:(NSString *)title{ // YOU CODE/// } @end This may the issue. I have solved by removing this category - (void)setTitle:(NSString *)title. Note: From iOS 8,

how to play sound with AVAudioPCMBuffer

你。 提交于 2019-12-21 04:49:08
问题 I Cannot play sound with AVAudioPCMBuffer (though I could play with AVAudioFile). I got this error. ERROR: AVAudioBuffer.mm:169: -[AVAudioPCMBuffer initWithPCMFormat:frameCapacity:]: required condition is false: isCommonFormat here is my code below, and I'd really appreciate for your help. import UIKit import AVFoundation class ViewController: UIViewController { let audioEngine: AVAudioEngine = AVAudioEngine() let audioFilePlayer: AVAudioPlayerNode = AVAudioPlayerNode() override func

Cannot dismiss email sheet invoked from UIDocumentInteractionController in iOS 8

霸气de小男生 提交于 2019-12-21 04:42:10
问题 I've got a very simple test app which contains nothing but the following code, attached to a UIButton : - (IBAction)buttonUp:(id)sender { // Build file path NSString* filePath = [[NSBundle mainBundle] pathForResource:@"testfile" ofType:@"txt"]; NSURL *url = [NSURL fileURLWithPath:filePath]; m_interactionController = [UIDocumentInteractionController interactionControllerWithURL:url]; [m_interactionController presentOptionsMenuFromRect:CGRectMake(200, 200, 100, 100) inView:[self view] animated

UiSegmentedControl on NavigationBar below Title

偶尔善良 提交于 2019-12-21 04:27:15
问题 I am new on iOS Development and during my works for an app I am building right now some doubts have appeared to me. I am trying to build a Screen that will be compounded by multiple ViewControllers, but on the NavigationBar I would like to have a UiSegmentedControl above the Title, something like a Scope Bar to control the navigation between the children ViewController. I wanted to build something similar to what we have on HealthKit Dashboard: . What kind of approach do you suggest to do

willRotateToInterfaceOrientation not called on iOS8

╄→尐↘猪︶ㄣ 提交于 2019-12-21 04:22:20
问题 I'm using the VFR PDF viewer library in my app, where I present it thus: ReaderDocument *document = [ReaderDocument withDocumentFilePath:pdfFile password:nil]; ReaderViewController *vc = [[ReaderViewController alloc] initWithReaderDocument:document]; [self.navigationController pushViewController:vc animated:YES]; If I run on iOS7, everything works fine. If I run my app on iOS8, the willRotateToInterfaceOrientation method in ReaderViewController never gets called, so when the device is rotated

MPVolumeView animation on iOS 8

旧巷老猫 提交于 2019-12-21 04:11:34
问题 In iOS 8 there is a problem or a feature. When MPVolumeView is shown, it's being animated, like expanding from 0 to it's width. How can I fix that behavior? There was no such problem on iOS 7. 回答1: One possible way to remove this behavior is to subclass MPVolumeView and perform some additional work after [super layoutSubviews] . - (void)layoutSubviews { [super layoutSubviews]; [self cg_recursiveRemoveAnimationsOnView:self]; } - (void)cg_recursiveRemoveAnimationsOnView:(UIView *)view { [view

Unable to change UIInputView height

自古美人都是妖i 提交于 2019-12-21 03:57:06
问题 I have a simple UIInputViewController subclass with only two overridden methods. I use this input view controller as inputAccessoryViewController on my UIViewController subclass which becomes first responder. I try to specify height of inputView by adding constraint as Apple documentation recommends. Problem is that my constraint doesn't work and I get autolayout exception when my constraint is being added Unable to simultaneously satisfy constraints. Probably at least one of the constraints

ios8 TouchID detection if fingerprint was added

ぃ、小莉子 提交于 2019-12-21 03:51:45
问题 Im digging into Apple's Touch ID, more precisely the Local Authenticator. The documentation as of now is pretty sparse. Its mainly just this: LAContext *myContext = [[LAContext alloc] init]; NSError *authError = nil; NSString *myLocalizedReasonString = <#String explaining why app needs authentication#>; if ([myContext canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&authError]) { [myContext evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics localizedReason

ERROR ITMS-9000: "Invalid architecture: Apps that include an app extension and a framework must support arm64

天涯浪子 提交于 2019-12-21 03:49:30
问题 I want to upload build with Custom keyboard extension on Itunes Connect But when I am going to upload it on Itunes Connect through Application loader its show me following error ERROR ITMS-9000: "Invalid architecture: Apps that include an app extension and a framework must support arm64 I have added valid architecture to "Armv7",armv7s,arm64 in keyboard extension target and app target as well.but I am still facing same problem 回答1: Please check your embedded frameworks, if any. I've faced the

Update Core Data store location to support App Groups

眉间皱痕 提交于 2019-12-21 03:43:25
问题 I have an app already in the App Store that uses core data to save data. Now, when iOS 8 is about to come out I wanna add a widget to it, thus I must use App Groups to share data between the binaries. One problem though - I need to change the store location to support App Groups to all the existing users. I wrote the following code, trying to move the store to the new path: // Returns the persistent store coordinator for the application. // If the coordinator doesn't already exist, it is