我正在尝试创建推送通知,根据从推送获得的信息确定要打开的视图.
我已经设法从推送中获取信息,但我现在正在努力让视图打开
查看其他堆栈溢出问题,我目前有以下内容:
App Delegate完成加载:
//Extract the notification data
if let notificationPayload = launchOptions?[UIApplicationLaunchOptionsRemoteNotificationKey] as? NSDictionary {
// Get which page to open
let viewload = notificationPayload["view"] as? NSString
let storyBoard : UIStoryboard = UIStoryboard(name: "Main", bundle:nil)
//Load correct view
if viewload == "circles" {
var viewController = self.window?.rootViewController?.storyboard?.instantiateViewControllerWithIdentifier("Circles") as! UIViewController
self.window?.rootViewController = viewController
}
}
Run Code Online (Sandbox Code Playgroud)
目前这在var ViewController = self ...行上失败了.
我们目前正在尝试在Windows 8域环境中部署我们学校的Visual Studio 2015 Professional.Visual Studio安装正常但开始菜单中缺少其快捷方式.并且搜索功能找不到视觉工作室.该程序可以直接运行.
我找到了一些快捷方式:"C:\ ProgramData\Microsoft\Windows\Start Menu\Programs\Visual Studio Tools"但是这些只适用于命令提示工具,而不适用于visual studio本身.
快捷方式可能还有其他任何地方吗?