Khuong Khuong - 1 year ago 84
iOS Question

How to define a function in objective c

I want to translate this code from Swift to Objective C:

typealias Completion = ([Media]?) -> Void

I have look over stack overflow posts, but I don't see the answer for this.

Please help me.

Answer Source
typedef void (^CompletionBlock) ( NSArray<Medial*>* _Nullable array);
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download