ios7

UITextField within UISearchBar in iOS 7

喜你入骨 提交于 2019-12-18 03:22:13
问题 I am trying to accomplish the same look of my UISearchBar with a TextField within it, as in my iOS 6 app. I have tried to code it in several ways and not yet been successful. The problem is, I am not able to change the TextField's frame in any way since iOS 7. The result is, my TextField takes all the space in the NavigationBar and overrides the UIBarButtonItem (menu button) to the right. See pictures below: iOS 6 code: This is how I coded it in iOS 6, where I could set the TextFields frame

How does iOS app Fing get MAC Address?

笑着哭i 提交于 2019-12-18 02:49:39
问题 I known Apple stopped MAC address API since iOS 7. But I just found the app Fing can get MAC address. How could it happen? If I use samillar way to get MAC address, is it allowed by iTunes review? BTW: the How to get iOS device MAC address programmatically doesn't really help. I need MAC address, not [UIDevice identifierForVendor]. 回答1: Fing can only get the device's MAC address if the device is connected to a WiFi network. I suspect it implements an ARP scan on the local network and matches

Auto Layout constraint change does not animate

爷,独闯天下 提交于 2019-12-18 02:48:14
问题 I was learning the auto layout with animations from the tutorial http://weblog.invasivecode.com/post/42362079291/auto-layout-and-core-animation-auto-layout-was and things were working perfect. When I tried to use this concept in my application, trying to animate a settings screen(a UIView) from bottom to top,it works great when the settings screen is just an empty UIView, But in case I add a UILabel as a subview to this settings screen, the animation just vanishes. On removing this UILabel

How to disable UITextview selection text, copy/paste UIMenuController but still have hyperlinks working [Not duplicate] [duplicate]

十年热恋 提交于 2019-12-18 02:37:11
问题 This question already has answers here : How to disable copy paste option from UITextField programmatically (16 answers) Closed 5 years ago . I want to disable copy/paste menu and i'm using HTML tag in UITextView in which multiple hyperlinks and want to only disable menu. My texview image 回答1: just try to create a subclass of UITextView that overrides the canPerformAction:withSender: method - (BOOL)canPerformAction:(SEL)action withSender:(id)sender { if (action == @selector(paste:)) return NO

HTML5 video/audio player on mobile Safari (iOS 7 & iOS 10) excludes cookies

强颜欢笑 提交于 2019-12-18 02:22:31
问题 I have noticed that the HTML5 video/audio player (AppleCoreMedia) on mobile Safari on iOS 7 excludes all cookies, even first-party cookies. Not even sessions cookies are included in the HTTP-header. This makes it impossible to relay on cookie authorization when playing a video clip in mobile Safari on iOS 7. All cookies are included correctly running iOS 6 but on iOS 7 no cookies are included in the HTTP-header of AppleCoreMedia. Can some one else confirm this issue on iOS 7? Steps to

Xcode 5 iOS 7 CocoaPods Linker Error

半城伤御伤魂 提交于 2019-12-18 01:40:25
问题 I just upgraded my old project to new iOS 7. It was already using Cocoapods. I compile and run and everything works fine on the simulator and the device. I tried to archive it using Xcode and I get the following error. ld: library not found for -lPods clang: error: linker command failed with exit code 1 (use -v to see invocation) Any ideas! UPDATE: The architecture for the Pods project is set as the following: Standard architectures (armv7,armv7s) SOLUTION : Cocoapods has been removed from my

iOS 7 : Disable UINavigationBar Translucency For Entire App

落花浮王杯 提交于 2019-12-17 23:47:33
问题 Is there a way to disable UINavigationBar Translucency for an entire application? I'm aware that using [self.navigationController.navigationBar setTranslucent:NO] can fix this issue for a single controller, but I have a lot of UINavigationBars in my application and this is a pretty tedious solution. I've tried [[UINavigationBar appearance] setTranslucent:NO] , but that functionality is surprisingly not supported. Doing that results in Terminating app due to uncaught exception

Presenting semi-transparent viewcontroller that works both in iOS7 and iOS8

谁说我不能喝 提交于 2019-12-17 23:44:40
问题 I had the following code that worked perfectly in iOS7. [UIView animateWithDuration:0.5 animations:^(void) { self.view.alpha = 0.5; [self.navigationController.navigationBar setAlpha:0.3]; }]; //to make the background view controller semi-transparent UIViewController *rootViewController = [UIApplication sharedApplication].delegate.window.rootViewController; [rootViewController setModalPresentationStyle:UIModalPresentationCurrentContext]; OverlayViewController *ctlr = [storyBoard

Set navigation bar image in iOS 7

半城伤御伤魂 提交于 2019-12-17 23:38:49
问题 I want to convert my current project from iOS 6 to iOS 7. In iOS 6 my project is working fine, but in iOS 7 navigation bar image is not showing properly. I used this code snippet for iOS 6, UIImage *imgNav = [UIImage imageNamed:@"navigation.png"]; self.navigationController.navigationBar.frame = CGRectMake(0, 0, 320, 44); [self.navigationController.navigationBar setBackgroundImage:imgNav forBarMetrics: UIBarMetricsDefault]; How can I set the navigation bar image in iOS 7? 回答1: Try Adding the

New Xcode 6 Project - How to run in the iOS 7 Simulator

*爱你&永不变心* 提交于 2019-12-17 23:26:38
问题 I try to create a new project with Xcode 6 that also runs on iOS 7. I've created a new project and then did the following: Set Project's iOS Deployment Target to 7.0 Referenced a Launch Image Source in the Assets Still, when trying to run on an iOS 7 simulator, the following error is shown: "iPhone 5s not available. Please select a different device and try again." (My older projects run fine on iOS 7 simulators.) How I can make a new project run in the iOS 7 simulator? EDIT The output of