Search
 
SCRIPT & CODE EXAMPLE
 

SWIFT

xcode hide keyboard when touch background storyboard

override func viewDidLoad()
    {
        super.viewDidLoad()
        
        //Hide Keyboard
        let tap = UITapGestureRecognizer(target: self.view, action: #selector(UIView.endEditing))
        view.addGestureRecognizer(tap)
    }
Comment

PREVIOUS NEXT
Code Example
Swift :: unrecognized font family Helvetica-Regular 
Swift :: swift uicollectionviewcell how to know when off screen 
Swift :: stackoverflow get firbas analytics in ios 
Swift :: get hours difference between two dates swift 
Swift :: gap between table header uitableview 
Swift :: How to control the line spacing in UILabel 
Swift :: swift get a rectangle centered 
Swift :: swipe left to go back iphone swift 
Swift :: underline uitextfield swift rotate 
Swift :: swift programming language wikipedia 
Swift :: Fetch class from userdefaults ios swift 
Swift :: prevent iphone to sleep swift 
Swift :: how do i get a string from a float swift to 1 decimal swift 
Swift :: swift set uicolor 
Swift :: swift round double to 2 decimal places 
Swift :: swift date difference in days 
Swift :: how do i have countdown timer in swift stackoverflow 
Swift :: Module compiled with Swift 5.3 cannot be imported by the Swift 5.3.1 compiler 
Swift :: add navigation bar button swiftui 
Swift :: change background color of uitableview section header 
Swift :: swift try catch 
Swift :: swift create an empty array 
Swift :: swiftui tutorial 
Swift :: swift check if regex is in string 
Swift :: swift function declaration 
Swift :: triple equals swift 
Swift :: initializer generator xcode swift 
Swift :: Swift n Parameter with Default Values 
Swift :: store multiple items in one core data record 
Swift :: Why Inheritance? 
ADD CONTENT
Topic
Content
Source link
Name
1+2 =