ios7

MKMapView makes the navigation bar gets transparent

狂风中的少年 提交于 2020-01-29 02:54:25
问题 I am porting my existing iOS 6 application to the new iOS 7. But whenever a MKMapView instance appears into the screen, my navigation bar loses its tint color. Steps to reproduce: Open Xcode; Create a new Master-Detail Application; Add the next line as the first one of the AppDelegate.m didFinishLaunchingWithOptions method: [[UINavigationBar appearance] setBarTintColor:[UIColor redColor]] Add the next line to the MasterViewController.m file: #import <MapKit/MapKit.h> Finally, add the next

UISearchBar overlaps status bar in iOS

蓝咒 提交于 2020-01-29 00:09:29
问题 I (just like everyone else here) am running into the same Status Bar overlap issue that everyone else is, with a little twist, and that is why I opening a new question about this. There seems to be some mechanism that lets the UISearchBar know where to position it self, which is totally out of whack. jaredsinclair answer here (iOS 7 status bar back to iOS 6 default style in iPhone app?) , explains in great detail how the Apple Engineers allow us to introduce logic to our application in order

How do you make a UITextView detect link part in the text and still have userInteractionDisabled?

送分小仙女□ 提交于 2020-01-28 09:19:12
问题 I have a textView that is layered on a tableView cell. I need the user to click on the tableView row to open a viewController but if the textView has a link it must be clickable and that's it, no copy, select etc. If I allow user interaction like this: textView.userInteractionEnabled=NO; textView.dataDetectorTypes =UIDataDetectorTypeLink; the didSelectRowAtIndexPath is not called and I understand why but how to achieve this? EDIT: What I'm looking for is the ability to specifically identify

UITextViews in a UITableView link detection bug in iOS 7

一笑奈何 提交于 2020-01-26 23:57:48
问题 I have custom UITableViewCells that contain a UITextView. I have link detection in the UITextView turned on in Interface Builder. When I first load the table view, everything seems to be working, but as I scroll up and down the table view, the link detection gets messed up. Specifically, cells that just have regular text (which are presented normally initially) are being shown as links (all the text in the text view is coloured blue and is an active link), and the links point to objects that

iOS 7: Keyboard not showing after leaving modal ViewController

不羁的心 提交于 2020-01-25 11:52:28
问题 I've got a HomeViewController that has different modal segues to several other UIViewControllers . If I try to show the keyboard on a UITextField within the HomeView, everything works fine. However, if I try to show the keyboard on a UITextField (using becomeFirstResponder ) after returning from any of the modal View Controllers, the keyboard never shows. Here's some sample code from one of the setups I've tried: In HomeViewController : - (void)viewDidAppear:(BOOL)animated { static BOOL

iOS 7: Keyboard not showing after leaving modal ViewController

戏子无情 提交于 2020-01-25 11:51:23
问题 I've got a HomeViewController that has different modal segues to several other UIViewControllers . If I try to show the keyboard on a UITextField within the HomeView, everything works fine. However, if I try to show the keyboard on a UITextField (using becomeFirstResponder ) after returning from any of the modal View Controllers, the keyboard never shows. Here's some sample code from one of the setups I've tried: In HomeViewController : - (void)viewDidAppear:(BOOL)animated { static BOOL

UITextView contentInset not working in UITextView on iOS 7?

戏子无情 提交于 2020-01-24 03:57:46
问题 I'm trying to set a UITextView 's contentInset property. When doing so, the UIEdgeInset 's top variable works just fine. So [self.textView setContentInset: 'UIEdgeInsetsMake(50, 0, 0, 0)]; works. But assigning any other variable of UIEdgeInsets doesn't work. Only the top adjusts. bottom doesn't adjust, neither do left or right . So [self.textView setContentInset: UIEdgeInsetsMake(0, 50, 100, 50)]; doesn't do anything to my textView. Am I missing something? Any ideas? 回答1: Use

UITextView contentInset not working in UITextView on iOS 7?

↘锁芯ラ 提交于 2020-01-24 03:57:01
问题 I'm trying to set a UITextView 's contentInset property. When doing so, the UIEdgeInset 's top variable works just fine. So [self.textView setContentInset: 'UIEdgeInsetsMake(50, 0, 0, 0)]; works. But assigning any other variable of UIEdgeInsets doesn't work. Only the top adjusts. bottom doesn't adjust, neither do left or right . So [self.textView setContentInset: UIEdgeInsetsMake(0, 50, 100, 50)]; doesn't do anything to my textView. Am I missing something? Any ideas? 回答1: Use

Ranging an iBeacon latency

ぃ、小莉子 提交于 2020-01-23 19:35:19
问题 I have been playing around with the new iBeacons in iOS 7. I have one device setup as a beacon, and the other device ranging to detect when I am near, far, immediate, etc. I'd like to know very quickly when I cross between these ranges. Is there any way to adjust the latency? I find that I have to move my device around very slowly or I will not know when I cross these thresholds. 回答1: No, you would not be able to adjust the beacon latency. As Apple says in Region Monitoring Guide: To prevent