Tagged Questions
1
vote
1answer
36 views
A better approach to coding the a string value test for a NSDictionary object
My conditional code here seems repetitive and long. Is there a better approach? I want to test for a string value in a NSDictionary object and then depending upon the value prefix a UILabel with $, £, ...
1
vote
1answer
53 views
Optimization of percent match code xcode
I have the following method that will take the car parts I searched for and match them to my car object in array. Then it tells me the percent match.
Example
Car.h has NSSet toCarParts. toCarParts ...
1
vote
1answer
98 views
Initialize a bunch of NSDateComponents objects at once (in a loop)?
I'm developing an iPhone app that is heavily Calendar-based, and it requires a good amount of (what I'm calling) "date boundaries."
I use these "date boundaries" to fetch EKEvents from specific ...
0
votes
1answer
194 views
How to optimize loading of images? (especially cocos2d)
So i recently started game development (which is freaking awesome), but one of the things that i never put much thought to was the loading of images. i'm curious as to advice for improving my current ...
1
vote
1answer
238 views
Data model code review for iOS app
I'm new to iOS development and I'm having trouble figuring out how to efficiently load my app's data at launch time. My app consists of a UITableView that is populated with a list of songs. Each cell ...
1
vote
1answer
88 views
Efficiency of grid generated by for-in loop
I've spend the last several hours working on a loop designed to take items in an array and arrange them as a so to speak "gird" of UIButtons. As far as I've been able to see through testing this code ...
1
vote
0answers
307 views
Help me improve the way I handle rotations in iOS painting app
I have an iOS app that support all orientations. I sometime notices performance issues when I rotate the device, and sometimes it crashes, badly. And it's not as smooth as other apps. This is my first ...