Tag : objective-c

4 years, 8 months ago 0
Posted in: Programming

Ran across a good article detailing how to handle zombie objects in iOS. Tracing Zombie objects in Objective C

Parsing JSON and Checking for Null
4 years, 11 months ago 0
Posted in: Programming

File this under the “not very obvious” category. A JSON response comes back and you’re parsing it like a champ. You even put in the regular null checking like the good programmer you are. Well, that just doesn’t work. Apparently the JSON isn’t translated into a nil as I expected. So instead of kicking out, […]

Objective-C Douglas Peucker Algorithm
4 years, 11 months ago 3
Posted in: Programming

A problem that I’ve run across is needing to render onto a custom chart roughly 8000 or more data points. At first I naively attempted to render all 8000 points, only to discover that it could not. At 2 pixels per data point, that’s 16,000 pixels and no surprise that iOS could not handle all […]

Page Controls, ScrollViews, and Storyboarded Scenes
4 years, 11 months ago 0
Posted in: Programming

So here I am implementing paging into my app. I’ve laid out what each of the pages should look like by designing them in the storyboard and I made the subclassed view controllers for each of them. No problem. Everything looks great. I proceed to load the scroll view with my page’s view controllers and […]

Quick reminder about Objective-C selectors
5 years ago 0
Posted in: Programming

So I spent a good 15 minutes scratching my head over an exception being thrown in Xcode:   So naturally I go to the playMovieFinished method and take a look at the selector being defined. Everything looked okay to me. After doing some digging around, I finally figured out what the problem was and it […]

Objective-C for the C# developer
5 years ago 0
Posted in: Programming

After developing in C and C++ for over 10 years, being able to develop in C# was like a dream. A lot of the mundane and tedious bits of code that just needed to be written in C++ could be done quickly (if not automatically) in C#. It let me focus on solving problems rather […]