mercredi 25 février 2015

Watchkit Extension Test Class - Bad Access Issue

I set up a test target for my Watchkit extension by following the steps mentioned in the 'How can I unit test my WatchKit extension?' section in this link.


Then I imported a controller class from the Extension into my test class and tried to create an object for it. This is throwing a EXC_BAD_ACCESS error.


Import statement:

#import "NotificationController.h"


Creating an object:

NotificationController *controller = [[NotificationController alloc] init];


The controller class i imported is a sub class of WKUserNotificationInterfaceController. Could someone tell me what I am doing wrong?


Thanks!


Aucun commentaire:

Enregistrer un commentaire