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

apache - PHP Soap issue while content length is larger -

asynchronous - Python asyncio task got bad yield -

javascript - Complete OpenIDConnect auth when requesting via Ajax -