Dates | Conferences | Venues | CfPs |
---|---|---|---|
January 27 | dotSwift | Paris, France | Closed |
February 7-8 | Mac Admin & Developer Conference UK | London, UK | |
February 23-24 | Playgrounds | Melbourne, Australia | Closed |
March 2 | Forward Swift | San Francisco, CA | |
March 2-4 | try! Swift Tokyo 2017 | Tokyo, Japan | Closed |
March 16-17 | Appdevcon 2017 | Amsterdam | Closed |
March 20-23 | Yosemite, by CocoaConf | Yosemite National Park, CA, USA | |
March 30-31 | iOSCon 2017 | London | Closed |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
tableView.backgroundColor = UIColor.clear() | |
let blurEffect = UIBlurEffect(style: .light) | |
let blurEffectView = UIVisualEffectView(effect: blurEffect) | |
tableView.backgroundView = blurEffectView |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
class BaseViewController: UIViewController { | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
let backTitle = NSLocalizedString("Back", comment: "Back button label") | |
self.addBackbutton(backTitle) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import Firebase | |
import UserNotifications | |
@UIApplicationMain | |
class AppDelegate: UIResponder, UIApplicationDelegate { | |
var window: UIWindow? | |
static var shared: AppDelegate { return UIApplication.shared.delegate as! AppDelegate } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func grabCity(_ str: String) -> String { | |
// the commented line below (the regex to be exact) gets just the last word! which is wrong, my fault though, i didn't read the challenge corectly! | |
// let regex = try! NSRegularExpression(pattern: "(\\w+)(?!.*\\w)", options: []) | |
// the regex below get every matches in the sentence that is being wrapped in a pair of square brackets. | |
let regex = try! NSRegularExpression(pattern: "(?<=\\[)(.+?)(?=\\])", options: []) | |
// the "result" below is of type NSTextCheckingResult which is an array, since the challenge askes for the last match, and i couldn't get the last match through the regex, i ened up gtting the last match via the "last" item in the array. | |
let result = regex.matches(in: str, options: [], range: NSRange(location: 0, length: str.count)).last | |
/* | |
// from line 11 to 18, is an alternative for getting the matches out of the result array, since it is an array (of type NSTextCheckingResult) you can iterate thtough it (loop though it) | |
// you can use each o |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Copyright (c) 2010 Luke Redpath | |
Permission is hereby granted, free of charge, to any person obtaining a copy | |
of this software and associated documentation files (the "Software"), to deal | |
in the Software without restriction, including without limitation the rights | |
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
copies of the Software, and to permit persons to whom the Software is | |
furnished to do so, subject to the following conditions: | |
The above copyright notice and this permission notice shall be included in |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//: Playground - noun: a place where people can play | |
// | |
// Created by Pietro Basso on 29/06/2018. | |
// Copyright (c) 2018 Pietro Basso. All rights reserved. | |
// | |
let urls = ["http://youtu.be/NLqAF9hrVbY", | |
"http://www.youtube.com/watch?feature=player_embedded&v=DJjDrajmbIQ", | |
"http://www.youtube.com/watch?v=dQw4w9WgXcQ", | |
"http://www.youtube.com/embed/NLqAF9hrVbY", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@interface UILabel (dynamicSizeMe) | |
-(float)resizeToFit; | |
-(float)expectedHeight; | |
@end |
OlderNewer