任何人都可以帮助找到我的机器中是否安装了cocoaPod.我试图在我的应用程序中使用Google Map.所以我被要求安装CocoaPods.任何人都可以帮我解释一下目的.
如何在使用ASWebAuthenticationSession时清除cookie,场景就像,不同的用户可以使用同一个设备登录。如果用户已经在完成 SSO 的情况下使用它,则应用程序不会坚持为新用户提供 SSO。
所以需要清除cookies。
提前致谢。
我有一个类ViewControllerA,我可以UIPopoverPresentationcontroller从中显示B类显示的数据,工作正常.当我在pop中选择一个值时,我想解雇它.我的代码如下
- (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath
{
NSString *getLang=[self.myArr objectAtIndex:indexPath.row];
if ([getLang isEqualToString:@"Ragul"]) {
getLang=@"Received";
}
else if ([getLang isEqualToString:@"Gokul"])
{
getLang=@"Denied";
}
ViewControllerA *viewCont=[[ViewControllerA alloc]init];
viewCont.delegate=self;
[self dismissViewControllerAnimated:YES completion:nil];
[viewCont anOptionalMethod:getLang];
}
Run Code Online (Sandbox Code Playgroud)
anOptionalMethod是一个自定义委托方法,我调用它来显示从PopOver中选择的值的数据.
-(void)anOptionalMethod:(NSString *)langLocal
{
[self viewDidLoad];
self.popController.delegate = self;
[self.ContPop dismissViewControllerAnimated:YES completion:nil];
self.langShown=YES;
lblText.Text=MyValue;
[self.view addSubview:lblText]; // This calls viewDidLoad method
}
Run Code Online (Sandbox Code Playgroud)
当我将结果添加到ViewControllerA与[Self.view addSubview:MyValue]该viewDidLoad方法被调用.所以这不应该发生.我知道这popOverPresentationController充当了父视图,因此我遇到了这个问题.所以请帮我解决这个问题.先感谢您..