Parse.com PHP Setup using MAMP for OSX

I recently wanted to explore developing for Parse.com using PHP. My webdev skills are quite rusty but it wasn’t too tough. I made some notes and thought I’d share them. I used MAMP which makes the foundational setup quick and easy. Here’s the steps…  1. Install MAMP – http://www.mamp.info/en/index.html – download, double click, not much more too it (I avoided Read more about Parse.com PHP Setup using MAMP for OSX[…]

Changing iOS Font on All Widgets (UILabel, UIButton, etc.)

Sometimes it’s necessary to change the font on an app and you don’t want to go into Interface Builder and manually change them all. Ug. So you can recursively call a method to change the font on all subviews that respond to the setFont: method.

Check that it responds to the selector and call Read more about Changing iOS Font on All Widgets (UILabel, UIButton, etc.)[…]

Loading iOS ViewController in Code from a Storyboard File

In one project, I needed to present some one-off view controllers so I thought it would be best to put them in their own StoryBoard file and load them in code. I wrote a method that takes the view controller name (set in the Identity Inspector – see image). In this case it is “browserVC” Read more about Loading iOS ViewController in Code from a Storyboard File[…]

Forward Geocode in iOS with CLGeocoder

Similar to the post about reverse geocoding, the forward geocoded uses CLGeocoder. I wrote a quick static method that takes an address string (e.g., “4700 Louisiana 22 #1, Mandeville, LA 70471”) and a completion handler. All this method does is create the CLGeocoder for you and make the call. It’s mostly just a way to Read more about Forward Geocode in iOS with CLGeocoder[…]

Reverse Geocode in iOS w/ CLGeocoder

If you’re using CLLocationManager to obtain the user’s location, you can add some code in the delegate method to reverse geocode the user’s location…

Alloc-init a CLGeocoder and call reverseGeocodeLocation: w/ the location passed in (or any location) and a completion handler. I’m storing it in a instance variable to use later. Here’s some code Read more about Reverse Geocode in iOS w/ CLGeocoder[…]

iOS UIWebView Handle window.open/window.close PopUp Page

  I had a unique problem today – if a page opens a new ‘window’ in a UIWebView and then calls window.close to close it, how is that handled in iOS? UPDATE: Swift version added at the bottom. On top of that, the pop-up window was to allow the user to select a value for Read more about iOS UIWebView Handle window.open/window.close PopUp Page[…]