Fundamentals of Objective-C !!!
Objective-C is a general purpose high level Object Oriented programming language. Objective-C programming language designed by using C and Smalltalk-80 programming language. Objective-C programming language follows smalltalk message passing style(syntax)…
Singleton Class sample
//.h file should contain + (MySingleton *)sharedInstance; //.m file must declare as below + (MySingleton *)sharedInstance { static dispatch_once_t once; static MySingleton *instance; dispatch_once(&once, ^{ instance = [[MySingleton alloc]…
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 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…
There are three distinct approaches to iOS development
Approaches to iOS Development Web Application Development The original iPhone OS 1.0 required all non-Apple applications to be web-based and executed within the Mobile Safari web browser. Because Mobile Safari does not support plugins like Adobe Flash or…
How To Manage NSMutableDictionary And NSMutableArray
//create the dictionary NSMutableDictionary *dictionary = [[NSMutableDictionary alloc] init]; //add keyed data [dictionary setObject:@”Object One” forKey:@”1″]; [dictionary setObject:@”Object Two”…
How to catch a Nan?
How to catch a Nan? NaN is not equal to any value, including NaN, use this property instead of the equal-to operator (==) or not-equal-to operator (!=) to test whether a value is or is not NaN. Nan represents Not a number When it happens to get a…
How To Remove and Replace String within a String.
// Here We Deleting Something NSString *content = @”i am a good boy”; NSCharacterSet *deleteString = [NSCharacterSet characterSetWithCharactersInString:@”good”]; content = [[content componentsSeparatedByCharactersInSet:…
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…