Class conforming to protocol as function parameter in Swift

前端 未结 7 1292
萌比男神i
萌比男神i 2020-11-29 02:12

In Objective-C, it\'s possible to specify a class conforming to a protocol as a method parameter. For example, I could have a method that only allows a UIViewControlle

7条回答
提交回复
热议问题