Swipe Images in ImageView in IOS

Create a new project in xcode under Single View Application, Put some images into your project. In ViewController.h #import @interface ViewController : UIViewController { NSArray *array; } @property (nonatomic, strong) UISwipeGestureRecognizer *leftSwipeGestureRecognizer; @property (nonatomic, strong) UISwipeGestureRecognizer *rightSwipeGestureRecognizer; @property (nonatomic, strong) IBOutlet UIImageView *image1; @end In ViewController.m #import “ViewController.h” @interface ViewController () @end @implementation ViewController @synthesize image1; int imageindex = 3; – (void)viewDidLoad { [super viewDidLoad]; array = [[NSArray alloc]initWithObjects:@”Argentina.png”,@”Australia.png”,@”Austria.png”, nil]; self.leftSwipeGestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipes:)]; self.rightSwipeGestureRecognizer = [[UISwipeGestureRecognizer alloc] initWithTarget:self action:@selector(handleSwipes:)]; self.leftSwipeGestureRecognizer.direction = UISwipeGestureRecognizerDirectionLeft;…

Continue reading »

Send Mail with Image in IOS

Create a new project in xcode and add MessageUI.framework framework into your project, Add an image into your project that you need to send mail. And download the Base64 files from the below link, http://www.mediafire.com/folder/c6dabipw5pv7g/Base64 and import the files into your project. In ViewController.h, #import #import @interface ViewController : UIViewController { IBOutlet UITextField *text1; IBOutlet UIImageView *image1; UIImage *sendimage; } @property (nonatomic, strong) UITextField *text1; @property (nonatomic, strong) UIImageView *image1; – (IBAction)sendmailButton:(id)sender; – (IBAction)returnkey:(id)sender; @end In ViewController.m, #import “ViewController.h” #import “Base64.h” @interface ViewController () @end…

Continue reading »

ScrollView with Images and PageControl in IOS

Type 1: Create a new project in xcode and import any few images into your project, In ViewController.h, #import @interface ViewController : UIViewController @property (nonatomic, strong) IBOutlet UIScrollView *scrollView; @property (nonatomic, strong) IBOutlet UIPageControl *pageControl; @property (nonatomic, strong) NSArray *imageArray; @end In ViewController.m, #import “ViewController.h” @interface ViewController () @end @implementation ViewController @synthesize imageArray,scrollView,pageControl; – (void)viewDidLoad { [super viewDidLoad]; imageArray = [[NSArray alloc] initWithObjects:@”Australia.png”,@”Austria.png”,@”Belgium.png”, nil]; for (int i = 0; i < [imageArray count]; i++) { //This is to create a imageview for every single pagecontrol…

Continue reading »