Tag: ios8

Determine if a copy to UIPasteboard was successful or not

I’m programmatically copying an image to the UIPasteboard, and I want to determine if the copy was successful or not. Specifically, I’m creating an custom keyboard on iOS 8, where some of the keys will copy an image to the pasteboard for the user to paste in a textfield. UIPasteboard *pasteBoard = [UIPasteboard generalPasteboard]; [pasteBoard […]

How to disable Copy & Define UIMenuItems of UIMenuController in UITextfield

I am implementing custom UIMenuController and trying to figure out. How can I legally disable “Copy” and “Define” UIMenuItems of UIMenuController in UITextfield? Textfield is not editable. I tried to disable “Copy” using: -(BOOL)canPerformAction:(SEL)action withSender:(id)sender { if (action == @selector(copy:)) { return NO; } return [super canPerformAction:action withSender:sender]; } – (IBAction)tapTextViewGesture:(id)sender { UIMenuItem *myItem1 = […]

People Picker with ios 7, and ios 8

This question already has an answer here: ABPeoplePickerNavigationController changes with iOS8? 3 answers

Share Extension not uploading full size images

i am developeing share extension for my iOS application. i had really done every thing but the problem is that my code is only working for small images but when i upload image taken from device camer then uploading fails and only text get uploded. – (void)performUploadWith:(NSDictionary *)parameters imageFile:(UIImage *)image{ NSString *boundary = @”SportuondoFormBoundary”; // […]

TableView in UIPopOverView Issue

I have a issue in UIPopover, I have added UITableView in UIPopover When I am running its running good in iOS7.* as below:- But while I am running in iOS8, It display as below: My Code is as below CustomPopOverViewController *viewControllerForPopover = [self.storyboard instantiateViewControllerWithIdentifier:@”CustomPopOverVC”]; viewControllerForPopover.delegate = self; int setTimeFlag = [[[selectedModuleProgram objectAtIndex:[sender tag]] valueForKey:kProgram_Mst_Program_Time_Flag] intValue]; […]

Detect if Custom Keyboard has been installed

I’ve read through the documentation and can’t seem to find any method of how can I detect if a custom keyboard has been installed in settings>general>keyboards? Does anyone know of any?

Behavior changes for updateViewConstraints in iOS 8

I notice some small graphical glitches while testing one of my app under iOS 8: some UIViews elements are not in the right place, others have not the right size. In a first step, I use storyboard, Auto-Layout and constraints. Then I programmatically tune constraints to perfectly suits devices’ screen size, using updateViewConstraints. Perfect on […]

Detect iPhone Volume Button Hold? (iOS 8)

Is there a way to detect if any of the volume buttons on the iPhone are being held? I know you can detect if one has been pressed, but I specifically need to know if one is being held down.

iOS 8 – AutoLayout issue – UIImageView inside UITableViewCell ignoring width constraints

I have a problem with iOS 8 autolayout. I want to have a custom UITableviewCell with a UILabel and 5 UIImageView. I want the images to be shown in landscape-mode but not in portrait mode, because then the UILabel would be squeezed to narrow. I designed the view in interface builder and added the following […]

ios 8 (UITableViewCell) : Constraints ambiguously suggest a height of zero for a tableview cell's content view

I have a tableview using auto layout constraints , every thing is working in iOS 7 but when i tested in iOS 8 get me the below warning Warning once only: Detected a case where constraints ambiguously suggest a height of zero for a tableview cell’s content view. We’re considering the collapse unintentional and using […]