错误1:
ld: '/Users/YWZ/Desktop/项目/MaiTianYingYu 3/MaiTianYingYu/lib/AliyunPlayerSDK.framework/AliyunPlayerSDK' does not contain bitcode. You must rebuild it with bitcode enabled (Xcode setting ENABLE_BITCODE), obtain an updated library from the vendor, or disable bitcode for this target. for architecture arm64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
如图:
解决方法:target -> Build Settings -> Enable Bitcode 改为NO
如图:
错误2:
如图:
解决方法:将你新引入的.framework框架Status 的值Required修改为Optional即可
如图:
打开QQ并跳转到指定QQ号聊天页面
NSURL *url = [NSURL URLWithString:@"mqq://im/chat?chat_type=wpa&uin=这里填写QQ号码&version=1&src_type=web"];
[[UIApplication sharedApplication] openURL:url];
A push 到 B, B push 到 C, C pop 到 D,D 再 pop到 A
// 建立可变拷贝对象,然后进行替换操作
NSMutableArray *navChildMArr = [self.navigationController.childViewControllers mutableCopy];
[navChildMArr replaceObjectAtIndex:1 withObject:D];
// 当然,最后再将替换后的数组赋值回去不要忘了
[self.navigationController setViewControllers:navChildMArr animated:YES];
#warning 写上面这串代码的时机:写在 B push C 之后可以,写在 C 的 viewDidLoad() 方法中