Another geofencing Morning Assessment. This time I put in a button to switch between jumping in and out of the region I set-up so I wouldn’t have to type it in the coordinates in the Emulator.
Morning Lecture today covered ARC which is the marketing name for what the Apple Xcode development team called ARR: Automatic Retain & Release – a way more descriptive name for what Automatic Reference Counting is. I think this makes it cleared that ARR is not a form of Garbage Collection. Why did Apple Marketing change it? The story I heard from now-retired Apple Director Don Melton leader of the WebKit and Safari teams tell is that the development team would act like pirates whenever they talked about ARR – so marketing changed it.
Specifically, we discussed the retain cycle, why children should not strongly retain to parents, and the UNIX philosophy of doing one thing well. This reminded me of Windows Phone 6 which had a menu bar and you had to use a stylus. No menu bar on the iPhone in UIKit is a good thing.
After another Sophie Lunch of Beef Stew we plowed into Afternoon Lecture with UI Tricks of the Trade. We took a look at a random palette generator at 80×15.com. These are great designed palette color schemes which color hex codes. What do you do with the hex code you ask – why put it through a UIColor Code Generator. Next we enhanced Navigation Bars by setting tints, translucency, and title text attributes. We then went back to the Visit Charlotte App from Day 11 which we changed to the Visit New York App. Today, we went in to enhance the UI of the App.
We had Jeff Holliday CTO of brainscape come in for a guest lecture entitled “Reducing Dependencies in Objective-C.” This reinforced the Morning Lecture and Jeff showed some sample code he had brought along.
Jeff discussed four standard ways to break down dependencies:
- KV Broadcasting/Observing
- Delegate Patterns
Jeff spent the lecture on the delegate patterns: defining that this is a technique to remove dependencies between objects and explained that the delegate pattern is the method Apple favors the most in their bag of software engineering patterns.
He described the three opportunities of when it makes sense to use the delegate pattern:
- When you have a circular dependency,
- When you want a reusable class,
- When you have an asynchronous interaction with outside objects.
In Q&A Jeff revealed he was a big proponent of the Freemium App Model (in the absence of App Trials): make it free and kill with in-app purchases.
After the guest lecture concluded we dove into more Afternoon Lecture with Custom View Table Cells in the Senari App by adding custom table view cells with switches, steppers, and labels both by making a XIB and then doing it with a Storyboard.
We then went back to finish yesterday’s lab of the LocationQuiz before the big event of the night: the First Flatiron iOS Meet-up. Al presented not only ShapeLib MapKit Polygon fun but also showed off CocoaPods and his own passion project of GeoMatch.
A great first meet-up which will be followed-up by another one next week.