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

Is it possible to reverse-engineer my iPhone application?

I have created an iPhone application, and I want to send the compiled .app file to my client, so he can install and test this iPhone application on his device. Is it possible that he can view the contents of this .app file, like the resource files used in this application (images, sound files, etc.)? […]

What is the visibility of @synthesized instance variables?

If you have a property in your public interface like the following @interface MyClass : NSObject @property(strong) NSString *myProp; @end And then synthesize it, in effect synthesizing the variable: @implementation MyClass @synthesize myProp = _myProp; // or just leave it at the default name.. @end What is the visibility of the instance variable _myProp? That […]

iphone error: expected '=', ',', ';', 'asm' or '__attribute__' before ' 'foo'

I’m trying to port the speakhere example into another app and I’m having issues. I copied all the files, and all the frameworks, but for some reason I get a bunch of compile errors that I’ve never seen before and thus don’t know what to do. The only difference is that i’m not suing IB […]

Under automatic reference counting, why are retain, release, and dealloc not allowed?

When trying to use -retain, -release, and -dealloc while building my application using automatic reference counting in Xcode 4.2, I get an error like the following: Automatic Reference Counting forbids explicit message send of ‘dealloc’ Why am I seeing this error? Are -retain, -release, and -dealloc no longer allowed under automatic reference counting?

Advantage and disadvantages of #define vs. constants?

This question already has an answer here: “static const” vs “#define” vs “enum” 17 answers

iPhone – What are reuseIdentifiers (UITableViewCell)?

From the official documentation: The reuse identifier is associated with a UITableViewCell object that the table-view’s delegate creates with the intent to reuse it as the basis (for performance reasons) for multiple rows of a table view. It is assigned to the cell object in initWithFrame:reuseIdentifier: and cannot be changed thereafter. A UITableView object maintains […]

how to take a screenshot of the iPhone programmatically?

Is it possible in objective C that we can take the screen shot of screen and stored this image in UIImage.

Get RGB value from UIColor presets

I my application I pass RGB color value to server. My app uses UIColor predefined values, like [UIColor grayColor], [UIColor redColor]. I know that I can use following code: const CGFloat *c = CGColorGetComponents(color.CGColor) but only for colors that are in RBG color space, however, [UIColor grayColor] is not. Is there any way to get […]

Get property name as a string

I need a way to pass a property and get the name assigned to it. Any suggestions? @property (nonatomic, retain) MyObject *crazyObject; NSString *str = SOME_WAY_TO_GET_PROPERTY_NAME(crazyObject); // Above method should return @”crazyObject”

loading images from a background thread using blocks

I have the following method, which basically calls a request to load an array of NSData of images in the background thread: [query findObjectsInBackgroundWithBlock:^(NSArray * objects, NSError * error){ }]; In this case objects is an array of the NSData. The issue is that if I have 100 images to load (100 elements in the […]