Hide the tableview separator
Set the separator to None on the TableView itself.
One Nice Bug Per Day
No title available
Jules of Nature

ellievsbear
let's talk about Bridgerton tea, my ask is open

★
occasionally subtle
Sweet Seals For You, Always
"I'm Dorothy Gale from Kansas"
hello vonnie
i don't do bad sauce passes
ojovivo

Kaledo Art
d e v o n

roma★
2025 on Tumblr: Trends That Defined the Year
Monterey Bay Aquarium
dirt enthusiast
AnasAbdin
Sade Olutola
seen from Malaysia
seen from Indonesia
seen from Türkiye

seen from United States

seen from Türkiye

seen from Norway

seen from United States
seen from Italy
seen from United Kingdom

seen from United States

seen from Malaysia
seen from United States
seen from United States
seen from United States

seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
seen from United States
@chenr2-blog
Hide the tableview separator
Set the separator to None on the TableView itself.
Close a modal
Should be obvious, but here it is:
dismissViewControllerAnimated(true, completion: {})
Disable bounce on UIPageViewController
See http://stackoverflow.com/questions/21798218/disable-uipageviewcontroller-bounce
UIPageViewController doesn't expose the bounces flag, nor its own scrollview. So you sort of have to reach inside and get a handle of the scrollview and set its bounces to false
for subView in view.subviews { if let scrollViewSubView = subView as? UIScrollView { scrollViewSubView.bounces = false } }
Dismiss the keyboard
Just add this to dismiss the keyboard
override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) { self.view.endEditing(true) }
This may not work on a tableView, because it's obscuring the entire view. You will need to call endEditing within your didSelectRow method.
Keyboard looks kind of big
You’re missing a launch image. The device scales up the iPhone 5/s 4-inch screen to fit the iPhone 6 (4.7-inch) and iPhone 6+ (5.5-inch) screens. The keyboard gets scaled up too.
Just add a launch image for each device form factor. Don’t forget to check your 3x iPhone 6 image assets.
http://stackoverflow.com/questions/28918938/why-do-iphone-6-plus-keyboards-look-different-on-my-app
Map Clustering with Swift
There’s a library for this:
http://ribl.co/blog/2015/05/28/map-clustering-with-swift-how-we-implemented-it-into-the-ribl-ios-app/
How do I detect hashtags and mentions
There’s a tutorial for that.
http://www.thorntech.com/2015/06/detecting-hashtags-mentions-and-urls-with-swift/
A good tutorial on slideout menus
Tutorial on left slideout menu with tab bar controller
http://www.thorntech.com/2015/06/want-to-implement-a-slideout-menu-in-your-swift-app-heres-how/
A good tutorial on table views
Get started here.
http://www.thorntech.com/2015/06/intro-to-uitableview-in-swift/
How can I find free icons?
Your first stop should be font awesome. You can use unicode text, which means you get vector scaling and the ability to set the color for free.
Tutorial on incorporating font awesome into a Swift project
http://www.clearlyinnovative.com/use-font-awesome-swift/
Tab Bar translucent bug
This happens on iOS 7 devices when you back into a tab bar from a detail page. Bug does not happen on simulator, nor on iOS 8.
This is a bug with iOS 7. Your workaround is to set a white background color on the Tab Bar:
http://stackoverflow.com/questions/22327646/tab-bar-background-is-missing-on-ios-7-1-after-presenting-and-dismissing-a-view
Action Sheet is messed up on iOS 7
Sometimes the UIActionSheet shows up slightly off-screen
Just replace this:
myActionSheet.showInView(self.view)
With this:
myActionSheet.showInView(UIApplication.sharedApplication().keyWindow)
Can’t make an Outlet on the Storyboard
Xcode won’t let me create an Outlet. I’ve tried restarting, and doing a clean, to no avail.
Could not insert new outlet connection: Could not find any information for the class named ...
The problem is that the Xcode state is corrupted. Quit Xcode, and delete the state:
cd ~/Library/Developer/Xcode/DerivedData/ rm -rf myTestProject-dakxkknkbfuocigqfvhlazthlnjs
How to drop a pin on the map
Assume someCoordinate is a CLLocationCoordinate2D
var dropPin = MKPointAnnotation() dropPin.coordinate = someCoordinate mapView.addAnnotation(dropPin)
How to add a shadow to a view
On the Storyboard Identity Inspector, add a Runtime Attribute
How to remove all map annotations
Short and sweet.
mapView.removeAnnotations(mapView.annotations)
Animate a constraint
Constraint changes normally happen immediately. You can animate them with animateWithDuration, and calling layoutIfNeeded in the animation block.
myConstraint.constant = 60 UIView.animateWithDuration(0.5, delay: 0.0, options: .CurveEaseInOut, animations: { self.view.layoutIfNeeded() }, completion: nil )