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

Does userInteractionEnabled property work correctly on SpriteKit nodes?

I have following simple code: // // BGMyScene.m // Test1 // // Created by AndrewShmig on 3/10/14. // Copyright (c) 2014 Bleeding Games. All rights reserved. // #import “BGMyScene.h” @implementation BGMyScene – (id)initWithSize:(CGSize)size { if (self = [super initWithSize:size]) { /* Setup your scene here */ self.backgroundColor = [SKColor colorWithRed:0.15 green:0.15 blue:0.3 alpha:1.0]; // first […]

error code when using GIDSignIn.sharedInstance.clientID =

I have an app which I used to use Auth2 to sign in using a client Id and client secret but now I have to use Google Sign In I have followed the instructions as I understand them but when I build I get this error -[__NSDictionaryI gtm_httpArgumentsString]: unrecognized selector sent to instance 0x17d49a40 I […]

in UiWebView – NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -108)

When I open a link in UIWebView and click on facebook icon of content of that URL it gives the following error 2014-01-09 13:15:14.412 AppName[2067:5407] CFNetwork SSLHandshake failed (-108) 2014-01-09 13:15:14.412 AppName[2067:5407] CFNetwork SSLHandshake failed (-108) 2014-01-09 13:15:15.063 AppName[2067:5407] CFNetwork SSLHandshake failed (-108) 2014-01-09 13:15:15.064 AppName[2067:5407] NSURLConnection/CFURLConnection HTTP load failed (kCFStreamErrorDomainSSL, -108) I also search […]

Eraser for UIBezierPath

I am using UIBezierPath for free hand drawing in iPad app. I want to apply eraser for this UIBezierPath. But i want to only erase the drawing by this path. i cannot use the path color as background color since i have other elements on the background. Can anybody help me. Following is my code […]

Why arabic font is not showing in iPhone (I can see text, but not font)

I am writing arabic text programmatically as discussed here and here. As per this solution, I can see english text in proper font, however when I am doing same with Arabic font, default font is coming and not the real one. Below are the screenshots for the same. English working fine Arabic taking default font […]

UITableView superClass for delegate?

A quick question, I am setting a delegate for UITableView and I have a question regarding setting the delegate and dataSource properties. I have noticed that the properties for delegate and dataSource are not available, I was thinking that adopting the protocols would make them available. But I am now thinking that I maybe have […]

Using Objective-C's method_invoke to call a void method under ARC

On iOS, I’m attempting to use the method_invoke function from the Objective-C runtime (reference) in order to call an Objective-C method that is declared with a return type of void. This works fine in non-ARC code, but with ARC enabled, I get a crash after the invocation of the method in objc_retain. I think what’s […]

resignFirstResponder to UITextViews on UITableViewCells that are no longer on screen

I have a UITableView with a whole bunch of custom UITableViewCells in it. Each of these UITableViewCells has a UITextView in them. The problem I’m having, is that if the user touches a UITextView, that becomes the firstResponder and the keyboard pops up. If the user then scrolls down to a point where the UITableViewCell […]

Is there a way to programmatically connect to a remote server from Cocoa?

Is there an Coca/obj-C API call to mimic the “Connect to Server” action in Finder? It’s possible with Automater, so it seems like Finder has a hook somewhere.

Cocos2D set sprite position in relation to another sprite

I am sure this is an easy question for anyone who knows anything about math and programming (Cocos2D), but when it comes to math I’m the village idiot. My game has a ship that flies around in space. The ship stays in the center of the screen and the camera moves with the ship. I […]