我从这里使用RAMAnimatedTabBarController模块:https: //github.com/Ramotion/animated-tab-bar
我使用Xcode 6在swift 1.2中开发了我的整个应用程序,应用程序运行得很好.我想尝试使用带有swift 2.0的Xcode 7对我的应用程序进行"侧载".我有太多的错误,我设法解决了大多数错误,但有三个.
1)来自该RAMAnimatedTabBarController模块的这行代码抛出一个错误,说明在Xcode 6中完美编译时无法激发该函数:
var constranints = NSLayoutConstraint.constraintsWithVisualFormat(formatString,options:NSLayoutFormatOptions.DirectionRightToLeft,metrics: nil,views: containersDict as [NSObject : AnyObject])
Run Code Online (Sandbox Code Playgroud)
编译器错误是:
无法使用类型为'(String,options:NSLayoutFormatOptions,metrics:nil,views:[NSObject:AnyObject])的参数列表调用'constraintsWithVisualFormat'
2)抛出另一个异常错误:
链接器命令失败,退出代码为1(使用-v查看调用)
3)另一个:
(null):错误:无法解析调试映射"/Users/Rakshith/Library/Developer/Xcode/DerivedData/Blubot-heabwwmhqxxvctaabxkwcpgzsadx/Build/Intermediates/SwiftMigration/Blubot/Products/Debug-iphonesimulator/BlubotTests.xctest/BlubotTests" : 没有相应的文件和目录
我的项目究竟出了什么问题?它仍然设置为iOS 8.3.
我试图通过遵循此文档动态更改Chrome扩展程序图标.
不幸的是,它不能使用以下代码:
chrome.browserAction.setIcon({path: 'my_icon.png'});
Run Code Online (Sandbox Code Playgroud)
在控制台中,它失败并出现以下错误:
Unchecked runtime.lastError while running browserAction.setIcon: Icon invalid.
Run Code Online (Sandbox Code Playgroud) 我有一些字符串:
new_account_notification
updated_account_notification
reactivated_account_notification
updated_billing_info_notification
Run Code Online (Sandbox Code Playgroud)
我想匹配这些字符串:
accountreactivated_accountbilling_info请建议正则表达式来满足这些条件.