Using A Tap Gesture That Doesn’t Interfere With A Tableview In Ios

So if you’ve ever used a Tap Gesture on a whole ViewController only to find that it interferes with a TableView and now you can’t select any rows, you know how it can be a pain. The good news is that there is a really simple way to fix it. You don’t need to create any weird invisble views, etc. Just add this bit of code in viewDidLoad: tap.cancelsTouchesInView = false Where tap is a UIGestureRecognizer object. You can create one in code like this: let tap = UITapGestureRecognizer(target: self, action: “closeKeyboard”) view.addGestureRecognizer(tap) Bonus And a simple way to close

Continue reading

Bicycle Wheel Sizes

TL;DR Version Q. Are mountain bike wheel sizes some marketing bullshit for the brands to sell more crap? A. No. They’re not. Q. Does wheel size actually make a difference in how the bike handles? A. Yes it does. Q. But how? A. Read on. I’ve been riding bikes every since I was about 5 years old. That’s 31 years ago. Back then there was only 1 type of bike, the ol’ banana-seat bike: Mine was green. This bike took you everywhere. Up and down mountains, to the beach, to the park, to school, there was nowhere this bike could

Continue reading