1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950import UIKit class ViewController: UIViewController ,UITextViewDelegate{ var contentField: UITextView? let gap:CGFloat = 8 //TextView 와 view 사이 gap override func viewDidLoad() { super.viewDidLoad() NSNotificationCenter.defaultCenter().addObserver(self, selector: "keyboardWillShow:", name: UIKeyboardWillSho..
1234567891011121314151617181920212223242526272829import UIKit class WritePostViewController: UIViewController ,UITextFieldDelegate ,UITextViewDelegate{ @IBOutlet weak var titleField: UITextField! @IBOutlet weak var contentField: UITextView! override func viewDidLoad() { super.viewDidLoad() self.titleField.delegate = self self.contentField.delegate = self } override func viewDidAppear(animated: B..
info.plist 에서 "View controller-based status bar appearance” 를 "NO"로 바꾼다. 모든 화면의 상태바의 색상을 변경하려면 AppDelegate파일에서 1234func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool { UIApplication.sharedApplication().statusBarStyle = .LightContent }Colored by Color Scriptercs 특정 View 에서만 색상을 변경하려면 해당 ViewController파일에서 12345override func vi..
- Total
- Today
- Yesterday