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

NSScrollView scroll downward when resizing?

I have a NSScrollView with a custom view inside and when I resize the NSScrollView, the height grows and it scrolls upward. Unless there is an easier way, I’ll probably have to register a notification to see if the view changes size and then adjust the scrollPoint: to a new point. I’m having trouble getting […]

Saving Changes After In-App Purchase Has Been Purchased

I have an In-App Purchase in my app for removing an ad banner and when I made a successful purchase and went back to my main view controller, the ad was not removed BUT when i quit the app and reopen it, the ad is gone and stays gone. Almost like it remembers that I’ve […]

EXC_BAD_ACCESS when executing ABAddressBookSave !

I’m trying to create a new contact and add it to the AddressBook but when I get to the ABAddressSave line of code I get EXC_BAD_ACCESS. I cannot see what am I doing wrong, I enabled NSZombie to check if this is a memory related error but it didn’t spot any. Can anybody tell me […]

cocos2d error

I am following the tutorial http://www.bit-101.com/blog/?p=2115.In this tutorial i found a project template and go through it to begin…. I have downloaded cocos2d-iphone-0.99.1 add the subdirectory cocos2d to project….but when i built i got 9 error and 4 worning Scene.h: No such file or directory Director’ undeclared (first use in this function) /Volumes/Jobed/cocos2d/CCTexture2D.m:79:24: error: FontManager.h: […]

How to fixed text field position in all iphone device?

I am need set UITextField position fixed in all device screen. I want to set UITextField position fixed. Please Help me. Thanks.

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 […]