iOS Development is easy with XCode, Swift3, UITableView, cocatouch, let's build iPhone, iPad and Macbook Applications.

Duplicate interface definition for class 'GTMHTTPUploadFetcher'

I plan to use Google Drive API in my Swift project. I’m trying to add the Drive SDK via CocoaPods (v0.39.0). Below is my Podfile. platform :ios, ‘8.0’ use_frameworks! pod ‘Google-API-Client/Drive’ I have the use_frameworks! flag added so that CocoaPods can convert Objective-C pods to Swift frameworks instead of static libraries. Pod installation is successful. […]

Creating an image out of the ios surface and saving it

I am trying to acquire the surface associated with the main screen of the ios device, create an image out of it and save it. This is in relevance to this question – Taking Screenshots from iOS app – emulating Display recorder (query on the internals). The code is as follows: IOMobileFramebufferConnection connect; kern_return_t result; […]

Is there a way to test my Xcode 7.2-compiled app with iOS 9.3?

I have the iOS 9.3 beta installed on a testing device as I’m running a few 9.3-compiled apps, but I also have an old app that is compiled in Xcode 7.2. I can run the app on any iOS 9.2 device with ease, but if I try to run it on the one iOS 9.3 […]

Where does a Swift iOS application begin its life?

If I create an Objective-C iOS application in Xcode, a file named main.m is generated. The contents of the file look something like this: main.m #import <UIKit/UIKit.h> #import “AppDelegate.h” int main(int argc, char * argv[]) { @autoreleasepool { return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); } } And this is where an Objective-C iOS application begins […]

Calling performSeguewithIdentifier doesn't call shouldperformseguewithIdentifier

I have two view controllers. On view controller1 I have the following: a segue that takes me to viewcontroller2 – this segue is named “showme” and is attached to the viewcontroller an IBAction for a UIButton In my code I have the following for the button press action @IBAction func buttonPress(sender: AnyObject) { println(“button pressed”) […]

NSDateFormatter dateFromString Always Returns nil

I want to apologize ahead of time for asking a repeat question, but none of the other solutions have worked for me yet. Every time I try to pass a date string to the dateFromString function I get nil. I haven’t read anywhere that things have changed since the iOS 7 update, but I am […]

Smooth video looping in iOS

Can anyone suggest a method by which you can achieve a completely smooth and seamless looping of a video clip in iOS? I have tried two methods, both of which produce a small pause when the video loops 1) AVPlayerLayer with the playerItemDidReachEnd notification setting off seekToTime:kCMTimeZero I prefer to use an AVPlayerLayer (for other […]

record input coming from bluetooth headset in iPhone

I have a project in which I have to record the voice coming from bluetooth headset and play with default iPhone speaker. I have searched a lot and got this code. UInt32 allowBluetoothInput = 1; AudioSessionSetProperty ( kAudioSessionProperty_OverrideCategoryEnableBluetoothInput, sizeof (allowBluetoothInput), &allowBluetoothInput ); ———— CODE FOR AUDIO RECORDER START AND STOP ———— – (IBAction)Record: (id)sender { […]

Camera image orientation

In my app I’m capturing images using the Camera. These are being stored in an NSArray as an NSData representation. When I convert the NSData back to the image, the orientation is now landscape instead of portrait as I took it. NSData *data = UIImagePNGRepresentation([arrayImage objectAtIndex:0]); UIImage *tmp = [UIImage imageWithData:data]; Anyone have an explanation? […]

i'm still getting the “The executable was signed with invalid entitlements.” error

I followed your steps and added the Entitlements.plist file to my project. I also added the get-task-allow field and set it to a boolean and unchecked the box. I go to build my application and I still get the error: The entitlements specified in your application’s Code Signing Entitlements file do not match those specified […]