ArcTouch homeArcTouch home

9 Tips To Maximize Performance Of An iPhone App

Learn the most important app developer tips and tricks to maximize the performance of your iPhone apps.

5 min. read - March 25, 2010

By Adam Fingerman

By Adam Fingerman

Send by email
Mobile App Developer - Ask Questions
Mobile App Developer - Ask Questions
Mobile App Developer - Ask Questions

Best Practices To Maximize App Performance

Here’s 9 tips that our app developers regularly follow to maximize an app’s performance on the iPhone.

Always use PNG files, they’re optimized at build time by Xcode to be more compact and faster to load.

Use plists over XML. They’re much smaller (optimized by Xcode to be compact binaries and don’t need to be parsed at runtime) and faster (XML parsers are very expensive).

Avoid auto-released objects whenever possible. Avoid utility methods like +stringWithFormat, instead use direct allocation (-initWithFormat:). When many auto-released objects are needed in a context, create local release pools.

Non atomic properties are 10x faster to read and write.

Calling [super didReceiveMemoryWarning] when implementing the -didReceiveMemoryWarning memory is very very important.

When implementing a custom -drawRect method, it’s very important to set the view as opaque (since alpha drawing is very expensive). It’s also important to define the area to redraw using CGRect and really only redraw that part of the view.

Avoid allocating objects in the scrolling callback methods (UITableView and UIScrollView delegates).

Don’t forget to reuse table cells. When a customized table cell is needed, to make the scrolling smooth, try to create a flat view hierarchy or better than that, make the cell use -drawRect (using -drawText and -drawImage). Custom drawing is the most optimized way to make table cells with complex layouts.

To access large files, use memory mapping. See [NSData initWithContentOfMappedFile:].

Article Author:

AF

Adam Fingerman

Chief Experience Officer

Tags:

Developer Tips
Programming Tips

Subscribe for more insights

Get our newsletter in your inbox.

By subscribing you agree to our privacy policy.

Related posts

12 web accessibility best practices: A starter list

ArcTouch shares 12 best practices that provide a great starting point for building accessible web experiences.

5 min. read - April 16, 2024

Injecting AI into software development — an ArcTouch blog series

The ArcTouch design and development team shares how to use AI to build lovable apps and websites — better and faster.

5 min. read - April 9, 2024

Contact us.

Let's build something lovable. Together.

We help companies of all sizes build lovable apps, websites, and connected experiences.

ArcTouch, an AKQA studio - logo

United States

548 Market Street
San Francisco, CA 94104

175 Greenwich Street
New York, NY 10007

206 E 9th Street
Austin, TX 78701

Canada

155 Queens Quay E
Toronto, ON M5A 1B6

Europe

1 St John's Lane
London EC1M 4BL

19 Rue des Saints-Pères
Paris 75006

Brazil

Rod. José Carlos Daux, 4150
Florianópolis, SC 88032-000

Follow Us

LinkedIn

Instagram

Medium

Back to top

Copyright 2025 ArcTouch

Legal
Accessibility Statement