Skip to content

Commit

Permalink
make a rect
Browse files Browse the repository at this point in the history
  • Loading branch information
claudiug committed Dec 20, 2015
1 parent b5768b9 commit c83d26b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,12 @@ import UIKit

class ViewController: UIViewController {

override func viewDidLoad() {
override func viewDidLoad(){
super.viewDidLoad()
// Do any additional setup after loading the view, typically from a nib.
let firstFrame = CGRect(x: 160, y: 240, width: 100, height: 150)
let firstView = UIView(frame: firstFrame)
firstView.backgroundColor = UIColor.blueColor()
view.addSubview(firstView)
}

override func didReceiveMemoryWarning() {
Expand Down

0 comments on commit c83d26b

Please sign in to comment.