How to assign textfield or any delegate in Swift Language? -


i new born developer swift language. want assign textfield delegate view controller. tried assign this

class loginviewcontroller: uiviewcontroller <uitextfielddelegate> 

it's returning following error "cannot specialize non-generic type 'uiviewcontroller'"

you need add protocols want conform using comma:

class loginviewcontroller: uiviewcontroller, uitextfielddelegate 

you can extend only 1 class, conform many protocols want:

    class loginviewcontroller: uiviewcontroller, uitextfielddelegate, uialertviewdelegate 

from apple doc:

class someclass: somesuperclass, firstprotocol, anotherprotocol {     // class definition goes here } 

Comments

Popular posts from this blog

javascript - Complete OpenIDConnect auth when requesting via Ajax -

c# - Replace text in MailItem Body -

java - Get more than One value and display it -