printdotio / printio-ios-sdk

SDK that enables the printing of any photo, from any source, onto any product!
Other
20 stars 11 forks source link

"Help" side menu button #518

Closed sebnun closed 8 years ago

sebnun commented 8 years ago

Hi, currently the "Help" button on the side menu doesn't work (it does nothing when tapped) and I could not find a method to set the text of this item on the documentation.

I'm using the release 1.7.22.

Which method do I have to use to enable it? Thanks

simulator screen shot apr 23 2016 8 25 22 pm

perisicboro commented 8 years ago

@sebnun You can set it on this way:

NSArray *defaultItems = [self.printIO defaultSideMenuItems];
NSMutableArray *sideMenuItems = [[NSMutableArray alloc]initWithArray:defaultItems];
NSArray *helpBtnArr = [sideMenuItems filteredArrayUsingPredicate:[NSPredicate predicateWithFormat:[NSString stringWithFormat:@"SELF.type==%li", (long)PIOSMButtonTypeHelp]]];

PIOSideMenuButton *helpButton = [helpBtnArr firstObject];
helpButton.dataHolder = @"http://www.gooten.com"; //  url for help page
[self.printIO setSideMenuItems:sideMenuItems];