Category Archives: code snippets

Parsing XML with Objective-C (iOS)

In order to parse XML into an NSDictionary to be used in my iOS project, I have found and implemented XMLReader created by Troy Brant. The implementation is simple to use as you can see for yourself:

iOS Friday Followup: Programmatic Views

Although slightly late, this post is a summary of the programmatic method of adding views to our iOS projects.  While we’ve been working in IB up to this point, I felt that it would be well worth our time to write some code to see clearly what is happening when we drag views (labels, buttons, images, etc…) all willy-nilly out into our IB projects. The first thing to keep in mind is that we started with a “Window-Based Application”, allowing … Continue reading

iOS 101 Developer’s Conference

So the first ever iOS 101 Developer’s Conference has come to an end.  For those of you who were in attendance, I’ll be posting the links and snippets that I promised.  For those who were not in attendance, I will also be posting the links and snippets that I promised.  So it’s win-win I think! In you didn’t get to make it, here’s a brief summary of what we went over: Day 1– I talked about the iOS market, networking … Continue reading

Speedy Shadows: Rasterizing For Performance

I was working on a grid of tiles, each one was an individual UIView.  For effect, I added shadow layers to each tile, but since they were all simultaneously draggable, the response was choppy and slow. So, after much searching, I finally found this article from the Omni Group which describes the process and advantages of different shadowing techniques. The one that I ended up using worked great and it was simple: tileView.layer.shouldRasterize = YES;