This is an anti-pattern I call the Poor Man’s Array. The better way to do this is to use a proper collection like an array instead of a bunch of variables that are secretly related. Done right, the code with an array will usually be a lot shorter and cleaner too.
More Related Contents:
- Replace multiple characters in a string in Objective-C?
- Objective-C parse hex string to integer
- Static string variable in Objective C on iphone
- Rounded UIView using CALayers – only some corners – How?
- Get push notification while App in foreground iOS
- How to send json data in the Http request using NSURLRequest
- To ARC or not to ARC? What are the pros and cons? [closed]
- How do I draw a shadow under a UIView?
- iPhone: How to draw line between two points on MapKit?
- Is it possible to include a quotation mark as part of an nsstring?
- How can I take an UIImage and give it a black border?
- UITableView issue when using separate delegate/dataSource
- Objective C: How to upload image and text using HTTP POST?
- Adjusting the volume of a playing AVPlayer
- How can I sort an NSArray containing NSDictionaries?
- Objective-C: Best way to access REST API on your iphone
- Property Declaration and Automatic Backing Storage Allocation
- Finding distance from RSSI value of Bluetooth Low Energy enabled device
- Instance variables with underscore in Objective-C 2.0 and renaming with @synthetize leads to optimization warnings by the ‘Analyze’ tool of Xcode 4 [duplicate]
- Managing HTTP Cookies on iPhone
- How to programmatically differentiate between iphone 4 and iphone 4S?
- NSString to NSArray
- How to create subscript characters that’s not in Unicode in iOS
- Retrieving current local time on iPhone?
- Why is autorelease especially dangerous/expensive for iPhone applications?
- Xcode – update ViewController label text from different view
- Error : The service is invalid
- iPhone development: pointer being freed was not allocated
- How to handle duplicate symbol error from 3rd party libraries?
- iOS – Scale and crop CMSampleBufferRef/CVImageBufferRef