قالب وردپرس درنا توس
Home / IOS Development / Custom object design questions

Custom object design questions




In a sea of ​​training programs where they are not looking at good design practices due to limitations, I have two questions:

1) Is it good to create a custom UIImageView containing network code? For example, the object has a URLSession and Spinner properties that animate during the network call and are disabled when the task is completed. Is this acceptable, doesn't this object have too many answers now?

2) When you move, see the setup code out of VC and use loadView (), you should handle the button target code inside VC and not View, correct?

Thank you for your help.

sent by / u / Izarst
[comments]
Source link