我的on applicationWillFinishLaunching_(aNotification)
处理程序不工作。它适用于我的“xib”IB,但它不适用于我的“.storyboard”IB。我应该在哪里看?我搜索了很多寻找任何说“applicationWillFinnishLaunching”但没有运气的东西。该处理程序只适用于我的主要故事板是“.xib”文件,但是当它成为“.storyboard”时它不起作用。applicationwillfinishaunching handler not working applescript xcode
回答
我正在使用故事板文件而不是用于我的界面的xib文件。我怎样才能在故事板上获得同样的链接?下面的图片:https://drive.google.com/open?id=0BzaQ6L3vezqkV3lNMk5GNFp0ZkU –
不要在故事板中使用applescript。一些原因:几乎没有支持!搜索“Xcode Storyboard Applescript”,你会发现......几乎没有任何东西。较少支持=平坦的学习曲线。故事板基于ViewControllers,每个场景都是独立处理的。无法使用ApplescriptObjC的有限可能性进行映射,例如你不能继承任何东西。用xib重建它。使用applescript开发要快得多。 –
感谢您的咨询!我将在XIB上重建它。我真的不知道这个术语,但是如何添加动作和弹出窗口?例如:https://drive.google.com/open?id=0BzaQ6L3vezqkYzVjVmU1dUtrRHM –
- 1. AppleScript + Xcode“applicationShouldTerminateAfterLastWindowClosed_(sender)”not working
- 2. set volume not working in xcode with applescript cocoa objc
- 3. XCode 6 UICollectionview viewwithtag not working
- 4. xcode code sense color/completion not working
- 5. Swift Type Inference Not Working(Xcode 7.1.1)
- 6. registerForRemoteNotificationTypes not working iOS7 xcode 6
- 7. Generic Handler not firing
- 8. iAd Banner not working
- 9. req.isAuthenticated not working
- 10. Gauge Scale not working
- 11. LINQ“not in”not working
- 12. Express.js request.body does not working
- 13. Javascript Scroll Handler not firing
- 14. String.replaceOccurrences(of :) with :) not working?
- 15. Swift-Scale SKAction not working
- 16. FadeIn jquery [not working]
- 17. Listview listselector not working
- 18. Sortable not working properly
- 19. $ wpdb insert not working
- 20. GQLQuery with_cursor not working
- 21. Javascript:return true not working
- 22. 3DTouch UIPreviewAction:performseguewithidentifier not working
- 23. Navbar not working mobile
- 24. Jquery.then not working
- 25. setImageResource not working
- 26. URL shortend not working
- 27. org.plasma.query.OrderBy not working
- 28. Async:False not working
- 29. ViewGroup Animation Not Working
- 30. PyMongo find_one not working
这是仍在您的其他线程上打开的相同问题。这完全很难理解你想要什么。看来(看到这个和你的其他问题)你甚至不知道使用XCODE的基础知识,我建议你做更多的培训和基本教程 –
@Pat_Morita我已经使用xcode 4个月了,我非常熟悉如何使用它。当我无法弄清楚什么时,我会问堆栈溢出。我之前询问过的问题是:处理程序applicationWillFinishLaunching_(aNotification)链接到接口生成器,因为问题不在我的代码中,它与故事板一起使用。但是,真正让我困惑的是,当我使用“.xib”IB而不是“.storyboard”IB时,会调用处理程序(我只是认为这对于解决问题可能会有所帮助)。这是解释我的问题的最佳方式。 –
这正是我的意思。 applicationWillFinishLaunching_是通过应用程序委托调用的处理程序。应用程序委托在IB中链接。而不是处理程序本身。这是XCode中的一些非常基本的东西。而IB是接口生成器。用你建立故事板的漂亮的拖放工具。还有一些非常基本的东西。请检查新创建的XCode项目上的连接(正如在另一个相同问题中告诉您的那样),如下面的答案 –