如何制作通知中心小部件(iOS 5) [英] How to make Notification Center Widgets (iOS 5)

查看:75
本文介绍了如何制作通知中心小部件(iOS 5)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

iOS 5引入了Notification Center Widgets,我想尝试使用这些小部件并制作自定义小部件(使用Jailbroken设备)。我无法弄清楚如何制作这样的小部件。 Widgets(WeeApps)是存储在/ System / Library / WeeAppPlugins中的包。如果有人已经写过指南或者可以分享WeeApp的主要类看起来如何,那将是很棒的。理想的情况是为theos设置一个WeeApp网卡模板:)

iOS 5 introduced Notification Center Widgets and I would like to experiment with those widgets and make custom ones (with a Jailbroken device). I couldn't quite figure out how to make such a widget. The Widgets (WeeApps) are bundles stored in /System/Library/WeeAppPlugins. It would be great if anyone has already writren a guide or could share how the principal class of a WeeApp has to look like. Ideal would be to have a WeeApp NIC template for theos :)

注意:这个问题与所谓的WeeApps,Notification Center的系统插件有关在iOS 5中引入。不要与iOS 8中引入的Today View Extensions混淆。

Note: This question is regarding so called WeeApps, system plugins for Notification Center introduced in iOS 5. Not to be confused with Today View Extensions introduced in iOS 8.

推荐答案

好吧我想我找到了一个理解它的好方法,在github上提供完整源代码的示例小部件: https://github.com/WillFour20/ WeeAppTest 但最有用的是本教程和本教程中提到的theos的NIC模板,我已经使用此方法和我的自定义NIC模板制作了几个小部件。 http://weeplugins.com/blog/?p=1

OK i think i have found a good way to understand it, a sample widget with full source code available on github: https://github.com/WillFour20/WeeAppTest But whats most helpful is this tutorial and the NIC template for theos mentioned in the tutorial, I already made several widgets using this method and my custom NIC templates. http://weeplugins.com/blog/?p=1

这篇关于如何制作通知中心小部件(iOS 5)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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