Tuesday, February 23, 2016
Command Line Tag Cloud ~ 2/23/2016
branch brew cd checkout clear com commit components demothumbnails-master dev-portal downloads fieldflickr git github gulp history home https icanhazthumbnail images install js loginwithclimate ls markdown master md node npm open origin pianobar pod podfile pull push python setup simplehttpserver src status theclimatecorporation update upgrade verbose version visa watch xcode xcworkspace
created at TagCrowd.com
Wednesday, February 17, 2016
Monday, February 15, 2016
Command Line Tag Cloud ~ 2/15/2016
add app applewatchfielddisplay beanless cd clear commit components content cp create-dev-account desktop dev-portal downloads droz git grandprizes gulp hero history home images index install jpeg jpg js ls markdown markdownlink markdownutils md npm png push python pythong react readme requestutil sidebar simplehttpserver src status stores styles userappview vim visa watch
created at TagCrowd.com
Sunday, February 14, 2016
Wednesday, December 23, 2015
Command Line Tag Cloud ~ 12/23/2015
ad add amazonaws api authorization bearer bin cd cleanup clear commit content-type css curl echo exit fb file git heroku history html https image imagery install jp local ls master mooberry-jpg partnerapis pip postgres push py python pythonw qa routes static status templates txt type users usr vim vv x-user-name
created at TagCrowd.com
Sunday, November 29, 2015
Friday, November 27, 2015
Introducing Command Line Tag Clouds
It's late so I'll write the introduction another time. All you get tonight is the first tag cloud of my command line history for the past 24 hours. I think it says a lot...
activate add app bin bitbucket brew cached cd chdir cleanup clear clone commit create css deactivate demo drozprojects echo env exit fb-logo flask-sqlalchemy flasktest forms git grep gunicorn heroku history home html https images index info install instantflask jpeg js launchagents layout learningflask library load local localhost login logo logs ls main master mkdir models name open org origin pg pianobar piece pip plist png postgres postgresql procfile psql pull push py python pythonw requirements riverdroz rm routes runpsql scripts sh signup site-packages source static status styles su templates touch txt uninstall users usr venv vim virtualenv web worker wsgiapp
created at TagCrowd.com
Tuesday, April 14, 2015
Saturday, April 11, 2015
Programmatically Creating an iOS Swift Based UITableView and Supporting Detail View
This is a quick tutorial on how to create an iOS Swift based UITableView and supporting detail view. I will also point out mistakes I made along the way and the errors that I came across. I hope that at least one other person in this tiny world of ours finds this blog and is able to avoid the common pitfalls that come with trying to learn something new.
Part 1: Creating the UITableView controller and populating its cells with data from a webservice.
Setting up the app
- Create a new Single Page Application
- Delete Story Board
- Delete ViewController.swift file
- Delete Main from General
Programmatically Create View
- Create new cocoa class > File > New > Cocoa Class
- Change class from NSObject to UITableView
- Don't select "create xib"
- Make sure language is "Swift"
- Name the file EventsViewController
- Open AppDelegate.swift and add the following lines of code:
//
// AppDelegate.swift
// BlogPostiOSUITABLEVIEW
//
// Created by Michael Droz on 11/28/14.
// Copyright (c) 2014 Michael Droz. All rights reserved.
//
import UIKit
@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
// Override point for customization after application launch.
window = UIWindow(frame: UIScreen.mainScreen().bounds)
//Create an EventsViewController
let evc = EventsViewController(style: .Plain)
//create an instance of UINavigationController
let navController = UINavigationController(rootViewController: evc)
//place nav controller's view in the window hierarchy
window!.rootViewController = navController
//can I delete these two lines?
window!.backgroundColor = UIColor.whiteColor()
window!.makeKeyAndVisible()
return true
}
func applicationWillResignActive(application: UIApplication) {
// Sent when the application is about to move from active to inactive state. This can occur for certain types of temporary interruptions (such as an incoming phone call or SMS message) or when the user quits the application and it begins the transition to the background state.
// Use this method to pause ongoing tasks, disable timers, and throttle down OpenGL ES frame rates. Games should use this method to pause the game.
}
func applicationDidEnterBackground(application: UIApplication) {
// Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
// If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
}
func applicationWillEnterForeground(application: UIApplication) {
// Called as part of the transition from the background to the inactive state; here you can undo many of the changes made on entering the background.
}
func applicationDidBecomeActive(application: UIApplication) {
// Restart any tasks that were paused (or not yet started) while the application was inactive. If the application was previously in the background, optionally refresh the user interface.
}
func applicationWillTerminate(application: UIApplication) {
// Called when the application is about to terminate. Save data if appropriate. See also applicationDidEnterBackground:.
}
}
Subscribe to:
Posts (Atom)
