tahoecoop
tahoecoop

Reputation: 378

How to declare this method in Swift

I'm having trouble translating this to my swift project. Thanks in advance!!!

+ (void)getResortsWithState:(NSString *)state andCompletion:(void(^)(NSArray *array))complete
    {
       ....
    }

Upvotes: 0

Views: 60

Answers (1)

zuziaka
zuziaka

Reputation: 575

static func getResortsWithState(state: String, completion: ([AnyObject]) ->() )

or if you know type of expression in array (I assume: Resort):

static func getResortsWithState(state: String, completion: ([Resort]) ->() )

Upvotes: 2

Related Questions