-(void)test { self.view.alpha = 0.4; }
If this is done from the view class on which actions are performed, everything works; if delegated to another class, it is executed, but does not work. What to do to make it work?
-(void)test { self.view.alpha = 0.4; }
If this is done from the view class on which actions are performed, everything works; if delegated to another class, it is executed, but does not work. What to do to make it work?
If you delegate to another class, then it must know the path to the view on which you want to perform an action. Or in the delegate to transfer view and in the delegated class to process it.
Source: https://ru.stackoverflow.com/questions/210387/
All Articles