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 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    …

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 for Bounds and Frames in IOS

Tips for Bounds and Frames in IOS

The bounds of an UIView is the rectangle, expressed as a location (x,y) and size (width,height) relative to its own coordinate system (0,0). The frame of an UIView is the rectangle, expressed as a location (x,y) and size (width,height) relative…

Tips to create dropdown list in IOS

Tips to create dropdown list in IOS

The Native iOS controls do not specifically have a native control for a dropdown. What we want is a control that behaves like a dropdown that uses a UIPickerControl . Native iOS dropdown To create the dropdown arrow we create…

How to validate or Allow Only Numeric value TextField in IOS or objective-c

- (BOOL)textField:(UITextField *)textField shouldChangeCharactersInRange:(NSRange)range replacementString:(NSString *)string { BOOL allowChange = YES; if ([textField isEqual:zipText]) { allowChange = NO; int textLength = [textField.text length]; int value; if (([string isEqualToString:@""])) { allowChange=YES; } else { value = (int) [string characterAtIndex:0]; } if…

How to use datatype in IOS or Objective-c

%@ Object %d, %i signed int %u unsigned int %f float/double %x, %X hexadecimal int %o octal int %zu size_t %p pointer %e float/double (in scientific notation) %g float/double (as %f or %e, depending on value) %s C string (bytes)…