简体   繁体   中英

Accessing a UIView from its UIViewController in Swift

simple question how do I access something in my UIView from the UIViewController ? i tried

self.view.functionname(variables)

but it dosent work..

解决的办法是-

 (self.view as! MyView'sName).myFunction

访问viewController的视图yourViewController.view

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM