A Bugs Life

by: aidan

It’s been a fairly quiet week for me here at Tapadoo in comparison to Úll week last week! If you haven’t read Kevin’s summary of the conference yet, I recommend you take a peep!

It was quite difficult to come home to our small flat after living the luxury at Úll. I had gotten used to waking up to the sound of birds outside Lyrath house, but unfortunately I’m back to having the Dart less than a metre from my bedroom window as an alarm clock!

house

No really. It’s that close.

But we didn’t waste too much time on Thursday, we dove head first back into some bugs. I managed to fix most of the bugs that were assigned to me (with a bit of help from the crew), but there was one bug that bested me. Everything I tried either had no effect at all or just broke the app more! So I pushed the bug up the chain of command to Dermot for some “boss-coding”!

The goal was to have a list of input fields that the user would fill out and when they hit the submit button, the textfields would be validated and the textfield that failed validation would be given focus after displaying an error message. This sounded quite straightforward, but caused me all sorts of problems!

The problem was that this was working less than 50% of the time. In iOS to focus a UITextField, you call the becomeFirstResponder method. Since we were displaying a UIAlertView to show the error message, we were calling becomeFirstResponder too soon for it to have any affect. The alert view had to be dismissed first. Dermot proved this by delaying the call to becomeFirstResponder by a short amount of time, which he later cleaned up by using UIAlertView‘s didDismissWithButtonIndex delegate method to make sure the alert view was finished with before focusing the textfield.

This was now working, but only if the textfield, which was housed in a UITableView, was visible. This meant in the alert view’s delegate method we also had to manually scroll the table view back to show the textfield, then wait for the animation to finish and finally call becomeFirstResponder!

So thankfully that bug is fixed now, and the others were fairly straight forward. We’ve started round 2 of the “Great Tapadoo Bake-Off” (#gtbo) this week, with a mount watering Guinness Chocolate Cake from Sasha. Up next to the plate (heh) is yours truly, and if you read my summary of my first attempt, you’re going to want to tune in again next week for the result of attempt two! Hopefully I can deliver on the right day this time!

You May Also Like

App Store Optimization: Scaling Medical Apps

App Store Optimization: Scaling Medical Apps

Medical apps can be useful tools for helping users manage their health, appointments and medicine. Medical app developers have many things to take into consideration when launching their app, including: how will users find it? You can’t help anyone if your app isn’t...

read more
5 Sketch Plugins for UI/UX Designers

5 Sketch Plugins for UI/UX Designers

The best plugins are not only reliable but complement your workflow and enhance your designs. Here’s a quick list of some of our favourites that are useful not only for app designers, but anyone using Sketch as their main design tool.  Sketch Measure HTML Output from...

read more

0 Comments

Submit a Comment

Your email address will not be published. Required fields are marked *