我在运行sudo pod install命令将其更新到最新版本0.32.1后发现了一个问题.早些时候它工作得非常好.
当我尝试使用较旧的cocoapods进行pod安装时,它要求我更新到最新的cocoapods版本,即0.32.1.在我通过cocoapods gem更新后,我无法在我的Xcode项目中进行sudo pod安装.它给了我以下错误.
± sudo pod install ruby-1.9.3-p0
Password:
/Users/username/.rvm/rubies/ruby-1.9.3-p0/lib/ruby/gems/1.9.1/gems/claide-0.5.0/lib/claide/command.rb:328:in `help!': [!] You cannot run CocoaPods as root. (CLAide::Help)
CocoaPods, the Objective-C library package manager.
Commands:....
Run Code Online (Sandbox Code Playgroud)
任何克服这个问题的建议都会非常有帮助.提前致谢.
我已经使用"applicationDidFinishLaunching"中的Appearance Proxy将UIBarButtonItem和UINavigationBar titleTextAttributes的外观更改为我的自定义Font以及颜色变为白色.每个导航标题文本和BarButtonItems都使用提供的自定义字体.
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
application.setStatusBarStyle(UIStatusBarStyle.LightContent, animated: false)
UINavigationBar.appearance().barStyle = UIBarStyle.BlackTranslucent
UINavigationBar.appearance().barTintColor = NSFontAttributeName:SharedHelper.myCustomBarColor()
UINavigationBar.appearance().titleTextAttributes =[NSForegroundColorAttributeName:UIColor.whiteColor()]
UIBarButtonItem.appearance().tintColor = UIColor.whiteColor()
let attributes = [NSFontAttributeName:SharedHelper.customFontForBarButton()]
UIBarButtonItem.appearance().setTitleTextAttributes(attributes, forState: UIControlState.Normal)
return true
}
Run Code Online (Sandbox Code Playgroud)
当我使用MFMailComposeViewController发送电子邮件时出现问题.MFMailComposeViewController忽略字体属性并恢复为默认字体.在iPhone 5S模拟器中,我可以看到一段时间的自定义字体,但它恢复为默认字体.
在iPhone模拟器5S中显示了一段时间.(我想要完成这个)
几秒钟后使用默认字体.
对此有何帮助?外观代理不应该也适用于MFMailComposeViewController的UIBarButton和NavigationBar,或者是否需要对此进行编码?
我正在使用Swift,并尝试使用由Nove使用Bridge的appearanceWhenContainedIn,但似乎没有工作.我关心的是改变MFMailComposeViewController的titleText和BarButtonItems(取消,发送)的字体.
提前致谢.任何帮助将受到高度赞赏.
我正在创建一个iPhone应用程序.我有一些表来保存用户信息.是的,我需要有一个后端Web服务器来存储数据库,或者我可以使用iCloud存储而无需Web服务器?CoreData可用于在iOS设备中保存数据,但也需要一些远程数据库,不是吗?该远程数据库可以是iCloud存储吗?
任何提示和信息都非常感谢.
问候