Upvote:2

[ServerHelper getAdvertsWithTarget:self selector:@selector(mySelector)];

More Answer related to the Same Query

Upvote:0

[target performSelector:someSelector];

Upvote:0

- (void)viewDidLoad
{
    [super viewDidLoad];
    [ServerHelper getAdverts:@selector(mySelector:)];
}

- (void)mySelector:(id)object
{
    NSLog(@"selector ok");
}

Credit Goes to: stackoverflow.com

Related question with same questions but different answers