Hi -
Having difficulties setting up a SideDrawer as it refuses to listen to the TKSideDrawerDelegate method, (DidSelectItemAtIndex:)
My application runs with an initial login page and push segue to new user sign-up view. Upon login, a TKSideDrawerController is created and set up as rootViewController.
The TKSideDrawerController is initialised with the content of my main UserVC. Everything functions as desired, except I am unable to respond to any clicks on SideDrawerItems as the relevant method is never called. My UserVC is set as a TKSideDrawerDelegate.
I've been very impressed with the Telerik iOS UI tools so far, but this problem has been very frustrating!!!
7 Answers, 1 is accepted
Thank you for contacting us.
Currently we are not able to reproduce such issue. The correct method signature is sideDrawer:didSelectItemAtIndexPath:. Could you please confirm that this is the delegate method you are trying to handle selection in? If yes could you please send us a sample project where the issue occurs so I could investigate it further and give you a proper solution?
I am looking forward to your reply.
Regards,
Adrian
Telerik
Hi Adrian -
Thanks for the response - since I wrote my post, I have tried to get a simpler project working which solely uses the SideDrawer example given on the Telerik site :http://docs.telerik.com/devtools/ios/SideDrawer/overview
I have had no success with this either... Perhaps there is an issue with the version of Xcode I'm using or something else weird!!!
To give you specifics:
I am now running a test project, which has ViewController class + AppDelegate.
The selection method is never called when SideDrawer items are clicked, but the SideDrawer is dismissed.
Running Xcode 7.0.1 but don't think that is the problem.
In the provided screenshot seems like the view controller where you want to handle the item tap is not set as delegate to the side drawer. You should first set the side drawer's delegate property to be able to handle the tap in the sideDrawer:didSelectItemAtIndexPath: method:
- (
void
)viewDidLoad
{
//...
self.sideDrawer.
delegate
= self;
//...
}
I hope this helps. If you need further assistance do not hesitate to write again.
Regards,
Adrian
Telerik
Thanks for your help.
I am glad that I could help. If you have further questions I will be glad to assist.
Regards,
Adrian
Telerik