This file contains hidden or 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 Alamofire | |
import UIKit | |
class MasterViewController: UITableViewController { | |
@IBOutlet weak var titleImageView: UIImageView! | |
var detailViewController: DetailViewController? = nil | |
var objects = NSMutableArray() | |
var networkReachabilityManager = Alamofire.NetworkReachabilityManager(host: "www.apple.com") |
This file contains hidden or 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
let cellLabel = UILabel(frame: CGRectMake(10, 0, 400, 21)) | |
cellLabel.textAlignment = NSTextAlignment.Left | |
cellLabel.text = self.tableData[indexPath.row] | |
cellLabel.font = UIFont(name: "HelveticaNeue-UltraLight", size: 20) | |
cellLabel.textColor = UIColor.blackColor() | |
cellLabel.backgroundColor = UIColor.clearColor() | |
cell.addSubview(cellLabel) |
This file contains hidden or 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 MyViewController: UIViewController,UITableViewDelegate,UITableViewDataSource { | |
var tableData: [String] = ["Table Item One", "Table Item Two"] | |
var tableViewLocal: UITableView! | |
override func viewDidLoad() { | |
super.viewDidLoad() | |
// Do any additional setup after loading the view, typically from a nib. |
This file contains hidden or 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
var window: UIWindow? | |
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { | |
print("here") | |
self.window = UIWindow(frame: UIScreen.mainScreen().bounds) | |
let nav1 = UINavigationController() |
This file contains hidden or 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
syntax "html" "\.htm[l]?$" | |
color red start="<" end=">" | |
color white "(<|=|>)" | |
color green "&[^;[[:space:]]]*;" | |
color yellow ""[^"]*"|qq\|.*\|" | |
color green "(alt|class|title|id|bgcolor|height|href|label|longdesc|name|onclick|onfocus|onload|onmouseover|size|span|src|style|target|type|value|width)" | |