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…
Tips to consume .net webservice in IOS applications
Tips to consume .net webservice in IOS applications Creating an iOS Client: Our iOS client will consist of a button which when clicked will make a request to the HelloWorld web method of the NotificationService. The button click event is shown below:…
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]…
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 detected with some XCode…
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.…
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…
Tips To Store and Retrieve Your Value From Keychain in IOS
Tips To Store and Retrieve Your Value From Keychain in IOS You should always use Keychain to store usernames and passwords, and since it’s stored securely and only accessible to your app, there is no need to delete it when app quits (if that was…
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…
Simple Objective-C Tutorial For Developing Apps in IOS
Objective-C is an object-oriented programming language, and is a layer over the C programming language. This means that if you know how to write C, there are only a few syntax changes to learn. In this section, we will look at how we can implement…
How to validate or Allow Only Numeric value TextField in IOS or objective-c
How to validate or Allow Only Numeric value TextField in IOS or objective-c In whatever UITextField you’re getting these values from, you can specify the kind of keyboard you want to appear when somebody touches inside the text field. Check the…