I’m building an app that is supposed to track user location and sort a bunch of venues based on where the user is on the latitude/longitude coordinate system relative to those venues. This post is me thinking through how to make Core Location and Core Data work together to sort the venues. I’m using Objective-C for some parts of the app, but my Core Data stack is all Swift 2.2, Xcode 7.3.1 and I’m testing on iOS 9.3.1.
There are plenty of situations where you might want to generate a PDF from a
UIScrollView. If you search the internet, you’ll find lots of posts instructing you to change the frame of the scroll view to enclose all of its contents. This won’t work if you’re using AutoLayout. In any case, there’s a better way.
If you’ve ever seen this Xcode complain about that the “plain style” for UIBarButtonItem is “unsupported in a navigation item” you know that it can be a nuisance to narrow down which button item has the unsupported style, especially in larger projects.
Here’s some good news for you. It’s pretty easy to figure out what button is causing the warning. Here’s how you do it:
UIScrollView (and subclasses
UICollectionView) come with scroll indicators, which show your user where they are relative to the overall content size of the scroll view.
By default, you can set the scroll view indicators to either be black or white, like so:
Assembly language is really cool but it can also be maddening. I took a course on assembly last semester and I’d like to introduce a few of the basic concepts in assembly here. This isn’t a full blown tutorial, but just a bit to whet your appetite.