Reputation: 378
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
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