views:

26

answers:

2

Time Profiler says that statements like these are slowing my app down. Is there a better way to write this so that my app runs faster?

background = [[UIImageView alloc] initWithImage:[UIImage imageNamed:@"myfolder.png"] highlightedImage:[UIImage imageNamed:@"myfolderOFF.png"]]; 

Thanks

A: 

I'm going to go ahead and answer my own question with a "you can't."

However if you have an issue like this you COULD try optimize using C

http://iphonedevelopment.blogspot.com/2008/04/root-of-all-evil-introduction-to.html

jmont