Khuong Khuong - 7 months ago 40
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.

typedef void (^CompletionBlock) ( NSArray<Medial*>* _Nullable array);