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

Wrong color in Interface Builder

The problem: I set a color in Interface Builder, setting the channels RGB, then I do a screenshot of the working window, open it in Photoshop and check color by color picker, which I have set in Interface Builder. The result – the RGB values ​​are different from the ones I set. Video: http://www.youtube.com/watch?v=ASLfnYHPbqM Most […]

Detect permission of camera in iOS

I am developing a very simple video app. I use the official control: UIImagePickerController. Here is the problem. When presenting the UIImagePickerController for the first time, the iOS will ask for the permission. The user can click yes or no. If the user clicks no, the control is not dismissed. Instead, if the user keeps […]

Custom dealloc and ARC (Objective-C)

In my little iPad app I have a “switch language” function that uses an observer. Every view controller registers itself with my observer during its viewDidLoad:. – (void)viewDidLoad { [super viewDidLoad]; [observer registerObject:self]; } When the user hits the “change language” button, the new language is stored in my model and the observer is notified […]

In which situations do we need to write the __autoreleasing ownership qualifier under ARC?

I’m trying to complete the puzzle. __strong is the default for all Objective-C retainable object pointers like NSObject, NSString, etc.. It’s a strong reference. ARC balances it with a -release at the end of the scope. __unsafe_unretained equals the old way. It’s used for a weak pointer without retaining the retainable object. __weak is like […]

UINavigationBar's drawRect is not called in iOS 5.0

I’ve overrided(placed in category, or swizzled) UINavigationBar’s drawRect to show custom background. In iOS 5 it’s not working. What should I do?

Phonegap CDVViewController.h file not found when Archiving for iOS

I’m currently using Phonegap 2.0 to develop an iOS App in XCode. The app builds and runs fine in the emulator and also on the testing devices. The problem appears when I try to archive the app for distribution. The archive fails with the following message: CDVViewController.h file not found. Any ideas?

iOS (iPhone, iPad, iPodTouch) view real-time console log terminal

Is there a way to view the real-time console log to view NSLog and other debug messages in a real-time manner, such as adb logcat?

How to make a call programmatically?

I need to call programmatically in my app in a button click. for that i found code like this. [[UIApplication sharedApplication] openURL:[NSURL URLWithString:@”tel:1-800-555-1212″]]; Is it work in iphone sdk 3.0 and iphone 2.0 also Can any pls help Thank u in advance.

iOS 8 – Can't Install Enterprise App

Our company has an app that can be downloaded through a website using Enterprise Distribution. In iOS 8 Beta 5, tapping the download link brings up the expected pop-up “(website) would like to install (App Name)”. Tapping ‘install’ on that dialog first causes the app to get stuck “Waiting…” Until it finally indicates: “Unable to […]

Foreign key relationship mapping with RestKit

I’m totally new to RestKit and am struggling somewhat. JSON: { “teams”: [ { “id”: 1, “name”: “Team A” }, { “id”: 2, “name”: “Team B” } ], “users”: [ { “id”: 1, “name”: “cameron”, “teamId”: 1 }, { “id”: 2, “name”: “paul”, “teamId”: 2 } ] } CoreData: @interface Team : NSManagedObject @property (nonatomic, […]