使用xib而不是storyboard的iOS App Extension [英] iOS App Extension with xib instead of storyboard

查看:140
本文介绍了使用xib而不是storyboard的iOS App Extension的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在为Today视图编写iOS 8 App Extension(小部件)。 xcode中的默认模板附带一个故事板。如何使用xib文件而不是故事板?

I'm writing an iOS 8 App Extension (widget) for the Today view. The default template in xcode comes with a storyboard. How can I use an xib file instead of an storyboard?

文档说这是可能的,但我似乎无法弄清楚如何更改info.plist文件以加载xib。

The documentation says this is possible, but I can't seem to figure out how to change the info.plist file to get the xib loaded.

推荐答案

您需要做的就是添加NSExtensionPrincipalClass和您想要的类名。

all you need to do is add "NSExtensionPrincipalClass" and the classname which you want.

这篇关于使用xib而不是storyboard的iOS App Extension的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆