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

Firebase Crash.. iOS Swift

My Firebase iOS App i had to put the frameworks in manually due to some reason in cocoapods. i have been getting an crash error saying 2016-06-04 00:48:51.356 NewFirebase[74218:11918327] Configuring the default app. 2016-06-04 00:48:51.401 NewFirebase[74218:11918425] +[NSData gtm_dataByGzippingData:]: unrecognized selector sent to class 0x10bdd8110 2016-06-04 00:48:51.403 NewFirebase[74218:] <FIRAnalytics/INFO> Firebase Analytics v.3200000 started 2016-06-04 00:48:51.404 NewFirebase[74218:11918425] […]

If I override a class method, is there a way I can call the original method (the one that was overridden)?

In Objective-C, if I override a class method using a category, is there a way I can call the original method (the one that was overridden)?

Updating cell height after image downloads

I am displaying some text and images in a UITableView. The image first gets downloaded. Since before the image gets downloaded, I don’t know the size of image, so I initially put a UIImageView of some fixed size. And when the image is downloaded, I resize the UIImageView. dispatch_async(dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0), ^{ // Download image dispatch_async(dispatch_get_main_queue(), […]

Install ios 5 simulator to xcode 5.1?

I am currently using xcode 5.1 with Mac 10.8.5. But i can not install ios simulator in this xcode? any one tell me how to install ios 5 simulator ?

UIPageViewController with different ViewControllers, right way?

Basically, I have a Table View Controller and a normal View Controller, I want to make it so that I can swipe between the view controllers like on the home screen of app (obvious same type of view controller). But the thing I am finding is that the UIpageviewcontroller is usaully used when you have […]

What's the difference between using CGSizeMake and CGSize? Is one better than the other?

CGSize(width: 360, height: 480) and CGSizeMake(360, 480) seem to have the same effect. Is one preferred to the other? What is the difference?

Open an app (iOS/Android) via JavaScript, with a fallback redirect to App/Play store (2016 edition)

Given: Website, iOS and Android applications, registered urlscheme “myapp://”. Goal: on the website have a link shown to iOS/Android devices with app installed. Clicking on that link should open the app and invoke specific logic (handled by the app, essentially like “universal links” from apple, but without shadowing website links). Due to security constraints detecting […]

Disconnecting with server immediately after connecting

I have written a Singleton Class using GCDAsyncsocket Library to establish connection with any other device having same service using Bonjour. On one device I am using its Method “startPublishing” to make it a Host(Server), from the Application on another Device(Client) I am calling “StartBrowsing” to find out the available Devices in Network. When user […]

How to make one colour transparent in UIImage

I want to change a colour in UIimage to transparent I am using below code to change black colour to transparent -(void)changeColorToTransparent: (UIImage *)image{ CGImageRef rawImageRef = image.CGImage; const float colorMasking[6] = { 0, 0, 0, 0, 0, 0 }; UIGraphicsBeginImageContext(image.size); CGImageRef maskedImageRef = CGImageCreateWithMaskingColors(rawImageRef, colorMasking); { CGContextTranslateCTM(UIGraphicsGetCurrentContext(), 0.0, image.size.height); CGContextScaleCTM(UIGraphicsGetCurrentContext(), 1.0, -1.0); } CGContextDrawImage(UIGraphicsGetCurrentContext(), […]

HTTPS post request in IOS

Im trying to make https post request by using following code. NSURL *url = [NSURL URLWithString:@”https://portkey.formspring.me/login/”]; //initialize a request from url NSMutableURLRequest *request = [NSMutableURLRequest requestWithURL:[url standardizedURL]]; //set http method [request setHTTPMethod:@”POST”]; //initialize a post data NSDictionary *postDict = [NSDictionary dictionaryWithObjectsAndKeys:@”username”, @”username”, @”password”, @”password”, nil]; NSError *error=nil; NSData* jsonData = [NSJSONSerialization dataWithJSONObject:postDict options:NSJSONWritingPrettyPrinted error:&error]; [request […]