Skip to content

Instantly share code, notes, and snippets.

Avatar
💭
Git gud!

Leo superarts

💭
Git gud!
View GitHub Profile
@superarts
superarts / LFTableController+SearchDisplayController
Created Apr 30, 2015
LFTableController+SearchDisplayController
View LFTableController+SearchDisplayController
class ICSearchController: LFTableController {
var source_search: LFTableDataSource!
//@IBOutlet var search_controller: UISearchDisplayController!
//@IBOutlet var search_bar: UISearchBar!
override func viewDidLoad() {
super.viewDidLoad()
reload_featured()
reload_search()
@superarts
superarts / MBProgress+PFObject
Last active Aug 29, 2015
MBProgressHUD+Parse
View MBProgress+PFObject
let obj = PFObject(className: "sg_text")
obj.setObject(text_view!.text, forKey: SG.const.text)
MBProgressHUD.show("Analyzing...", view:view)
obj.saveInBackgroundWithBlock({
(success: Bool?, error: NSError?) in
MBProgressHUD.hideAllHUDsForView(self.view, animated:true)
if error == nil {
LF.log("TEXT saved", obj)
} else {
MBProgressHUD.show(error!.localizedDescription, view:self.view, duration:2)
@superarts
superarts / LFTableController
Last active Aug 29, 2015
Table controller.
View LFTableController
override func viewDidLoad() {
super.viewDidLoad()
lf_actionReload()
}
override func lf_actionReload() {
var array: Array<LTDictStrObj> = [ [
"title": "Title 1",
"desc": "Description",
], [
View .gitignore
# Xcode
*/build/*
build/
profile
*.moved-aside
DerivedData
.idea/
*.hmap
*.xcuserstate
*.xccheckout