How to Create Custom Delegate

// MyViewController.h: #import @protocol MyProtocolName; @interface MyViewController: UIViewController @property (nonatomic, weak) id delegate; @end @protocol MyProtocolName @required -(void)requiredDelegateMethod; @optional -(void)optionalDelegateMethodOne; -(void)optionalDelegateMethodTwo:(NSString *)withArgument; @end // end of delegate protocol In the implementation file, anytime you want to call a delegate method,…

How to take screenshots in iPhone !

Turn on your iPhone. Just hold down the button on the top right of the phone and wait for the white Apple logo to appear. Find the image you want to capture. You can choose any image from your email,…

Swift Programming Language Tutorial (The Basic)

Swift is Apple’s brand new programming language, just released this year at WWDC 2014. This Swift tutorial will take around 15 minutes and will give you a quick tour of the Swift language, including variables, control flow, classes, best practices,…

What is Swift (programming language)

Swift is a multi-paradigm, compiled programming language developed by Apple for iOS and OS X development. Introduced at Apple's developer conference WWDC 2014,Swift is designed to replace Objective-C, Apple's object-oriented language,[4] while working with Apple's Cocoa and Cocoa Touch frameworks…

How to Create UITextField programmatically in IOS

UITextField is a type of view which can display a value just like the UILabel and also lets the user change it on the screen using the keyboard. Programmatically create UITextField and add them to the current view Set the…

How to Create iCal event in IOS

Basically calendar control needs to keep informations in a managed way with dates. for that we need to integrate calendar controls in IOS programatically. There are lots of custom controls available in wan please take a look at this link…

Major Features of IOS 8

Apple took the wraps off iOS 8 at its WWDC keynote.we are compiling some of the truly great new features that Apple introduced with iOS 8. Extensions One feature in Android that a lot of iOS users have been clamoring…

iOS 7.1.1 Update Touch ID Issues

Apple's iOS 7.1.1 update was released to help correct issues with the iPhone 5S' Touch ID fingerprint scanner, and reports claim that it has done just that, improving not only the sensor's accuracy, but also its response time. However, the…

IOS -7.1 Features

IOS -7.1 Features This update contains improvements and bug fixes, including: •  CarPlay         ◦  iOS experience designed for the car         ◦  Simply connect your iPhone to a CarPlay enabled vehicle    …

iOS 7 – Key Features for Developers

iOS 7 – Key Features for Developers New Frameworks iOS 7 introduces the following new frameworks Sprite Kit – The Sprite Kit provides a hardware accelerated animation systems for 2D or 2.5D games. It also provides graphics rendering and animation,…

Tips to Loading image from a URL to UIImage object

Tips to Loading image from a URL to UIImage object Load image pointed by URL, for example, http://mycodetips.com/images/image0.jpg, using NSURL, NSURLRequest, and NSURLConnection NSURLConnection *conn = [[NSURLConnection alloc] initWithRequest: [NSURLRequest requestWithURL: [NSURL delegate:self]; Implement delegate methods of NSURLConnection - (void)connection:(NSURLConnection…

Tips for Converting UIColor object to NSData

Tips for Converting UIColor object to NSData Converting a UIColor object, view.backgroundColor, to an NSData object /* 1. Archive into NSData object */ NSData *data = [NSKeyedArchiver archivedDataWithRootObject:view.backgroundColor]; [dict setObject:data forKey:@"backgroundColor"]; … /* 2. Unarchive from NSData object */ NSData…

Capturing the screen and saving it as an image file

Capturing the screen and saving it as an image file Procedure of capturing image of a UIView Create a Bitmap Context Get the CALayer object (calayer, for example) through UIView’s layer property Call CALayer’s renderInContext: with passing the Bitmap Context…

Consuming WCF Web Services in an iOS Application

Consuming WCF Web Services in an iOS Application

Consuming WCF Web Services in an iOS Application -(void)viewDidLoad { [super viewDidLoad]; //Web Service Call NSString *soapMessage = [NSString stringWithFormat: @"\n" "; \n" "\n" "" " \n" " \n" ""]; //[[NSURLCache sharedURLCache] removeAllCachedResponses]; NSURL *url = [NSURL NSMutableURLRequest *theRequest =…

Debug memory leaks with XCode Instruments

Debug memory leaks with XCode Instruments

Debug memory leaks with XCode Instruments Using Appcelerator doesn’t mean you don’t have to take care of memory leaks. Odds are there is at least one leak in your app right now. Relatively unknown is that this can be easily…

Tips for Lazy Loading of Images in IOS

Tips for Lazy Loading of Images in IOS

Tips for Lazy Loading of Images in IOS 1. Create a new Xcode Project, Single View Application template and add a tableview. 2. Create a custom table view cell. 3. Download SDWebImage latest framework here. (https://github.com/rs/SDWebImage/wiki/Download-Complied-Framework) Assuming everything's done, what's…

Tips to create Custom Cells And Delegates

Tips to create Custom Cells And Delegates

Tips to create Custom Cells And Delegates Create A New Project Open Xcode, click on File->New->Project and select Single View Application. Name the project Tableview Tutorial 3 and set class prefix as TVT. Create the project. - Download the resources…