Questions tagged «ios7»

iOS 7是Apple iOS移动操作系统的第七个版本,是iOS 6的后续版本。它于2013年6月10日在该公司的Apple全球开发者大会(WWDC)上宣布,并于2013年9月18日发布。


7
iOS 7 — navigationController设置了我的UIScrollView的contentInset和ContentOffset
我有一个UIScrollView(实际上是UICollectionView,但这可能没关系)。当它出现在IOS 7中时,导航控制器会将其contentInset和contentOffset设置为我不需要的值。它似乎正在尝试调整状态栏和导航栏。我非常希望它让他们一个人呆着。我已经通过覆盖contentInset和contentOffset的getter和setter方法并带有一个标志来告知对象是否应接受一个集合来解决此问题。但是有更好的方法吗?

7
更新到Xcode 5之后-ld:找不到架构armv7或armv7s链接器错误的符号
我刚将iPhone 4S软件更新到iOS 7 Beta 2时,我正处于对新应用程序(Phonegap)进行最后修改的过程中。 完成后,Xcode无法检测到我的iPhone,因此我安装了Xcode 5 beta。经过修改后,我终于得到了它来检测我的手机。现在唯一的问题是所使用的体系结构有错误。 这是产生的错误: ld: warning: ignoring file /Users/-----------/Library/Developer/Xcode/DerivedData/testtest-bmnbmujiosugcmgeiceofgcfmsec/Build/Products/Debug-iphoneos/libCordova.a, file was built for archive which is not the architecture being linked (armv7s): /Users/--------/Library/Developer/Xcode/DerivedData/testtest-bmnbmujiosugcmgeiceofgcfmsec/Build/Products/Debug-iphoneos/libCordova.a Undefined symbols for architecture armv7s: "_OBJC_METACLASS_$_CDVCommandDelegateImpl", referenced from: _OBJC_METACLASS_$_MainCommandDelegate in MainViewController.o "_CDVLocalNotification", referenced from: -[AppDelegate application:didReceiveLocalNotification:] in AppDelegate.o "_OBJC_CLASS_$_CDVCommandDelegateImpl", referenced from: _OBJC_CLASS_$_MainCommandDelegate …

6
访问资产目录pathForResource
看起来: [[NSBundle mainBundle] pathForResource:@"name" ofType:@"png"]; 对于Images.xcassets资产目录内的资产不返回任何内容。我也尝试过: [[NSBundle mainBundle] pathForResource:@"name" ofType:@"png" inDirectory:@"Images"]; [[NSBundle mainBundle] pathForResource:@"name" ofType:@"png" inDirectory:@"Images.xcassets"]; 但是这些都不起作用。 有没有人成功检索目录中资产的路径?
69 ios7  xcode5  nsbundle 

20
从iOS7中的UIActivityViewController呈现时,无法在邮件编辑器中设置发送和取消按钮的文本颜色
我正在使用UIActivityViewController共享iOS7中的项目。当我点击“邮件”选项时,它将弹出邮件编辑器,但是导航栏上的“取消”和“发送”按钮以及导航栏本身是蓝色的,很难阅读,因此我想更改其颜色。它适用于iOS6,但不适用于iOS7。 我试过了 [[UIBarButtonItem appearance] setTitleTextAttributes:[NSDictionary dictionaryWithObjectsAndKeys:[UIColor redColor], UITextAttributeTextColor, [UIColor clearColor], UITextAttributeTextShadowColor, nil] forState:UIControlStateNormal]; 在iOS6中可以使用 [[UIBarButtonItem appearance] setTintColor:[UIColor redColor]]; [[UINavigationBar appearance] setBarTintColor:[UIColor redColor]]; 这会导致该颜色在应用首次运行时闪烁红色,然后立即切换回蓝色。


8
iOS7中的UIAlertView addSubview
UIAlertView在iOS7中,使用addSubview方法已不建议向中添加一些控件。据我所知,苹果承诺增加contentView财产。 iOS 7现在已发布,我发现未添加此属性。这就是为什么我搜索一些自定义解决方案的功能,该解决方案可以向此AlertView添加进度栏。例如类似于TSAlertView的东西,但更适合在iOS 7中使用。
By using our site, you acknowledge that you have read and understand our Cookie Policy and Privacy Policy.
Licensed under cc by-sa 3.0 with attribution required.