It’s that time when I decide to buy a new hard drive and install a new Hackintosh on my computer. I just bought a Samsung 850 500GB SSD. This will now house OS X rather than the 5 year old 64GB SSD it was on previously. I was struggling with the 64GB I had previously - it just wasn’t enough, and I constantly had to remove things to make space.
Dynamic cell heights in UITableView have put a big spanner in the works in terms of performance. You can’t simply return an arbitrary height under heightForRowAtIndexPath and assume everything will work. If you have text in your cell that could be 1 line or 10 lines, your cells need to have a dynamic height. There are a couple of ways to measure this height. I’ll get into that shortly. Measuring cell heights can also be a relatively slow process, so I’ll also go into optimisation techniques to achieve the all-important 60 frames-per-second that everyone strives for.
I released a small app called Intimacy a short time ago. It took me a whole 8 hours to complete, including design, development, and the submission process. Why? I haven’t released anything under my name for a long time. That’s not because I haven’t been building, but I have that problem of doing 80% of a project and then stopping. So instead, I decided to build something small - something that would take me a single day (just about) to complete.
Spotify is, without a doubt, my most used app. I listen to music constantly throughout the day - on my phone or the desktop application. Obviously my commute is strictly on the phone. I have had a premium subscription to Spotify for about 4 years, so I think Spotify in general is great (I wouldn’t be using it for so long otherwise!); however, as you are about to find out, I do have a few qualms with the iPhone app.
I use Evernote for almost all of my note taking - especially on desktop. I find the Mac app to be really great: it’s well designed, easy-to-use, and I’ve had few to no bugs with it. With that said, I find the iOS app to be lacking in a number of areas that the Mac app just happens to excel at. On the Mac app there is a sidebar with all of your shortcuts, and a vertical list for access to Notes, Notesbooks, Tags etc.
I use CityMapper at least twice a day, every weekday. Once in the morning to check my journey is all good and no delays. Second, in the evening, on the way home from work, to check there are no delays! It’s an invaluable tool, and while not perfect, every time I’ve e-mailed the developers with a suggestion they have been extremely polite and taken it on-board. CityMapper takes every bit of data they can get their hands on and then uses it to provide the user with information on how to get from A to B - whether it’s fastest to take a single tube, a bus and a tube, or simply just to walk.
I was recently thinking about the apps I use. I found it interesting to think that I have a go-to app for a particular interest, need, or desire. I don’t use two weather apps, or two note-taking apps. That’d be redundant; instead, I have one app that I like the most of the ones I have tried and stick with it. This probably sounds quite straightforward - and it really is - but it lead me to think about why I use these apps.
I made a post over a month ago about Diving Buddy going freemium - it took a long time, but Diving Buddy Lite is now officially released in the app store. I ended up releasing an entirely new app for the lite version - this is because it would’ve been difficult adding in the In-App Purchases to an app that has already been selling on the app store. This way, a user can either purchase the full version of Diving Buddy, or download the lite (free) version and unlock some of the calculators to get the same features - for the same price.
I really like how Apple have implemented parameter names in Swift. In Objective-C you’re very much tied in to type out every parameter as they’re part of the method identifier. Methods are very verbose, and I have actually come to like that (from a C# background, it took some time to get used to at first). In Swift, parameters have their internal name - i.e., what you call the parameter within the method itself.
Optionals are a concept that isn’t in Objective-C, which makes them instantly cool already (and that’s disregarding the usefulness of these, as I’ll go into shortly). What are optionals? An optional is a variable with a question-mark (?) on the end of it. It means that the variable has a value, and it’s X, or that there isn’t a value at all. If you’re from a C# background, you’ll know of the Nullable concept - I believe it’s pretty similar to that.