谁能告诉我淘宝口令咋回事,我自己蒙的解决思路是这样的,你们给评评:
仿淘宝分享口令:
- (void)applicationDidBecomeActive:(UIApplication *)application {
UIPasteboard *pboard = [UIPasteboard generalPasteboard];
NSString *string = pboard.string;
if ([string isEqualToString:@"手机"]) {
//
UIPasteboard *pboard2 = [UIPasteboard generalPasteboard];
pboard2.string = @"";
Html5ViewController *adVC = [[Html5ViewController alloc] init];
adVC.linkUrl = [[NSUserDefaults standardUserDefaults] objectForKey:@"pushInfo"][@"link"];
adVC.title = @"活动详情";
CTBaseNavigationController *nav = self.sCTabBarVC.childViewControllers[0];
[nav pushViewController:adVC animated:YES];
}
}