ios7

iOS 7 When Rotating View in Tab Bar, Right Side of View is Not Clickable

时间秒杀一切 提交于 2019-12-17 18:57:11
问题 I have a very simple app consisting of a single view. Everything works fine, the app rotates and buttons on the right side of the screen are clickable. I'm using iOS 7 and Xcode 5. If I go into the storyboard and select the view then do Editor > Embed In > Tab Bar Controller, now when the app rotates from portrait to landscape, the right side of the app is not clickable. It seems to be exactly 768 pixels from the left where it stops working, so it makes me think there's something in the app

UIAutomation's dragInsideWithOptions has no effect on iOS7 simulator

混江龙づ霸主 提交于 2019-12-17 18:43:24
问题 Since I use Xcode 5 and the new iOS 7 simulator to run UIAutomation tests with Instruments, dragInsideWithOptions and dragFromToForDuration functions have simply no effect. (The same tests worked fine with iOS 6.1 simulator.) Is this a known bug, or the usability of this functions has changed? Is there anyone who could use this function with iOS 7 simulator on iPad? 回答1: Same issue here. In addition to dragInsideWithOptions not working, dragFromToForDuration and flickFromTo aren't working

How to change button text color of UIAlertView in iOS7?

夙愿已清 提交于 2019-12-17 18:34:49
问题 iOS7 introduced general tint-color. I think UIAlertView is also in the valid range, but actually tintColor doesn't look to work with UIAlertView . (for tappable button text color) Is it possible to change the tint-color of alert view? If possible, how to change it? 回答1: Unfortunately you cannot customize the appearance of alert views, it is impossible to change the buttons text color. It is mentioned clearly in UIAlertView Class Reference: The UIAlertView class is intended to be used as-is

Status bar visible on iPad mini despite setting UIViewControllerBasedStatusBarAppearance to NO

大憨熊 提交于 2019-12-17 18:33:10
问题 I have an iPhone app with UIViewControllerBasedStatusBarAppearance set to NO. Not on any device I have tested with (iPhone 4, 5, 5s, 5c, iPad 4ish) is the status bar visible. Except on the iPad mini (1st gen). Using iOS SDK is 7.1. The status bar is visible on iPad mini 1st gen. I expect the status bar to be hidden on this setup as well. I even tried adding [[UIApplication sharedApplication] setStatusBarHidden:NO]; to didFinishLaunchingWithOptions but it's not changing anything. Status Bar

iOS SearchDisplayController prevents tableview from background color change (background stays gray)

谁说胖子不能爱 提交于 2019-12-17 18:31:01
问题 This might be a bug in iOS 7: I used storyboard to drag in Search Bar and Search Display Controller in my tableview controller. The background color of my tableview is altered after that. I am using an example from AppCoda's "how-to-add-search-bar-uitableview" to demo this issue. I only changed the example code with 1-line add-on in ViewDidLoad : [_tableView setBackgroundColor:[UIColor blackColor]]; See my screenshots here: The bottom of the tableview has already changed to black: But the top

UISearchBar animation issue

允我心安 提交于 2019-12-17 17:56:29
问题 I have a UIViewController in wich I want to show a tableview with the serchBar. As Simple as That: //viewDidLoad _tableView = [[UITableView alloc] initWithFrame:CGRectMake(0, 0, SCREEN_WIDTH(), SCREEN_HEIGHT()) style:UITableViewStylePlain]; _tableView.delegate = self; _tableView.dataSource = self; [self.view addSubview:_tableView]; // adding uisearch bar searchBar = [[UISearchBar alloc] initWithFrame:CGRectMake(0, 0, 320, 44)]; _tableView.tableHeaderView = searchBar; //

IOS7 UIPickerView how to hide the selection indicator

◇◆丶佛笑我妖孽 提交于 2019-12-17 17:44:10
问题 How can I hide those 2 lines on the selected row? 回答1: [[pickerview.subviews objectAtIndex:1] setHidden:TRUE]; [[pickerview.subviews objectAtIndex:2] setHidden:TRUE]; Use this in titleForRow or viewForRow delegate method of the pickerView . 回答2: Based on the other answers, I decided to enumerate the subviews and saw that the lines have a height of 0.5 so my solution now looks like this in Swift: func numberOfComponentsInPickerView(pickerView: UIPickerView) -> Int { pickerView.subviews.forEach

iOS7 Safari: Saving to Home-screen and persist token

白昼怎懂夜的黑 提交于 2019-12-17 17:34:00
问题 For iOS 6.[something] onwards Cookies, SQLite data and localStorage data for Full Screen Web Apps is stored separately from the Safari data. I have a token that I need persisted to the Home-Screen app when saving to Home-Screen. There is a cookie tester here. And a discussion here. Has anyone found an elegant solution to this problem? Very ugly solutions will also be considered:) 回答1: Since iOS 5 Apple have been making Home Screen bookmarks more and more isolated in terms of sharing data

Search for all iBeacons and not just with specific UUID

ぐ巨炮叔叔 提交于 2019-12-17 17:29:26
问题 Is it possible to search for all iBeacons which are nearby? I know it's possible to search iBeacons by UUID. But i want to find all iBeacons nearby. 回答1: An iBeacon is a region, and has as defining property the UUID. Therefore, you can only search for the ones matching a UUID. After you find one or more with a specific UUID, you can figure out which is closest using the delegate callbacks, where the beacons are stored in an array ordered by distance. There is great sample code on this and

Why does UIViewController extend under UINavigationBar, while UITableViewController doesn't?

断了今生、忘了曾经 提交于 2019-12-17 17:26:16
问题 I have UITabbarController with UINavigationController in it. I have a subclass of UIView that I assign as the view of UIViewController in the navController . This is pretty standard stuff, right? This is how I do it _productCategoryView = [[ProductCategoryView alloc] initWithFrame:self.view.frame]; self.view = _productCategoryView; This view has a UITableView as subView _productCategoryTableView = [[UITableView alloc] initWithFrame:self.frame style:UITableViewStylePlain];