Introduction
In this article I will create an Empty View application. Here I will implement an Image View using code to upload an image. We use a NSData defined in the NSObject base class.
To understand it we use the following..
Step 1
Open XCode by double-clicking on it.
Step 2
Create a New XCode Project by clicking on it.
Step 3
Now Select Empty View Application and click on Next.
Step 4
Now provide your Product Name and Company Identifier.
Step 5
Select the location where you want to save your project and click on Create.
Step 6
Now here we write the code.
AppDelegate.h
#import <UIKit/UIKit.h>
@interface testviewAppDelegate : UIResponder <UIApplicationDelegate>
@property (strong, nonatomic) UIWindow *window;
@end
AppDelegate.m


Sachin BhardwajPosted Feb 19, 2013, 6:57 AM
this code work properly plz check again.
Monish BansalPosted Feb 19, 2013, 4:47 AM
Sachin, this code will not work. You didn't used data in image.