IOS AppSupport.framework
2016-11-10 14:22
134 查看
参考地址: http://www.iphonedevwiki.net/index.php/CPDistributedMessagingCenter http://www.iphonedevwiki.net/index.php/Updating_extensions_for_iOS_7
越狱后,Tweak之间的进程间通信,可以用CPDistributedMessagingCenter系列
iOS 7、iOS 8下,要用rocketbootstrap的成果。
刚开始用,一直不能进行通信,有时候甚至是造成崩溃问题。
我出现的问题,主要是
1. Client Side Problem
2。Server Side Problem:
最好不要把这段代码放在Dispatch_async中,可能会造成不接收的情况,具体也没有去详细测试~~~
越狱后,Tweak之间的进程间通信,可以用CPDistributedMessagingCenter系列
iOS 7、iOS 8下,要用rocketbootstrap的成果。
刚开始用,一直不能进行通信,有时候甚至是造成崩溃问题。
我出现的问题,主要是
1. Client Side Problem
- (NSDictionary *)handleMessageNamed:(NSString *)name withUserInfo:(NSDictionary *)userinfo { // Process userinfo (simple dictionary) and return a dictionary (or nil 一定要Return,不然会崩溃的 - -!) } - (void)handleSimpleMessageNamed:(NSString *)name { // ... }
2。Server Side Problem:
#import "rocketbootstrap.h" CPDistributedMessagingCenter *c = [CPDistributedMessagingCenter centerNamed:@"com.mycompany.myCenter"]; // apply rocketbootstrap regardless of iOS version (via rpetrich) rocketbootstrap_distributedmessagingcenter_apply(c); [c runServerOnCurrentThread]; [c registerForMessageName:@"myMessageName" target:myTarget selector:@selector(handleMessageNamed:withUserInfo:)];
最好不要把这段代码放在Dispatch_async中,可能会造成不接收的情况,具体也没有去详细测试~~~
相关文章推荐
- iOS开发之集成iOS9中的Core Spotlight Framework搜索App的内容
- iOS 动态 Framework 对App启动时间影响实测
- iOS开发之集成iOS9中的Core Spotlight Framework搜索App的内容
- iOS app中framework的签名问题
- iOS 动态 Framework 对App启动时间影响实测
- iOS 上传app error: The executable for XXXX contains unsupported architetures x86_64,i386 (framework分离)
- IOS进阶之AdSupport.framework
- 最新 iOS 设备版本使用统计情况请查看苹果官网:App Store Distribution – Support – Apple Developer
- ERROR ITMS-90086: "Missing 64-bit support. iOS apps submitted to the App Store must include 64-bit s
- 实测iOS Dynamic Framework 对 App 启动时间的影响效果
- Ink Web Framework开源四个iOS app
- app-framework学习--ios惯性问题
- 在IOS APP中添加自定义的Framework
- app-framework学习--ios惯性问题
- iOS开发之集成iOS9中的Core Spotlight Framework搜索App的内容
- ios directory not found for option '-F/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries'
- [IOS APP]有声小说support
- iOS Dynamic Framework 对App启动时间影响实测
- iOS开发之集成iOS9中的Core Spotlight Framework搜索App的内容
- iOS开发之集成iOS9中的Core Spotlight Framework搜索App的内容