ios11

UISearchBarSearchField BackgroundView color

我与影子孤独终老i 提交于 2019-12-02 11:34:06
I am trying to change the background color of the search bar text field and i have searched and tried lots of solutions but those are not working. So, please anyone can tell me the exact solution for that. How can we change the background color of the search bar text field? /// used to prepare searchController inside navigation. private func prepareNavigationSearchControllerSetup() { self.title = AppConstant.kContacts let search = UISearchController(searchResultsController: nil) search.searchResultsUpdater = self search.searchBar.cornerRadius = 10.0 search.searchBar.textField?.backgroundColor

unrecognized selector sent to instance when no related entities found in Core Data

末鹿安然 提交于 2019-12-02 10:51:21
I have a Core Data problem - I have two entity's with the second being a one to many relation ship to the first. When trying to load a detailed view controller on the first with the first one's information and a UITableView fo the details of the 2nd, I am hoping this tableView code would allow me to show a blank table if now records are found. Instead I get a crash as indicated above. I have tried to cover the "Event" (the related NSSet) into an array, but I am not sure how to debug this error. Thanks for any pointers! func tableView(_ tableView: UITableView, cellForRowAt indexPath: IndexPath)

xcode Simulator delays the displaying of a page

岁酱吖の 提交于 2019-12-02 10:25:54
Upgraded to XCode 9.2 and now my app behaves badly on the ios simulator. It still runs ok when deployed to a physical device. The problem is that pages are taking from 10secs to 1 minute to refresh. eg after a tableview.reloadDate(). I am certain the reloading of the data is occurring immediately, it just that the page isn't being displayed until after a long delay Interestingly if I tap the simulator screen the response is as if I tapped the refreshed (but as yet undisplayed) page. I don't think this is an animation issue, I have made sure that in the simulator Debug menu that 'Slow

iOS 11 inputAccessoryView broken

不羁岁月 提交于 2019-12-02 07:31:53
I have the following set up for my UIToolBar / Accessory View on a view controller @IBOutlet var inputFieldView: UIToolbar! override var canBecomeFirstResponder: Bool{ return true } override var inputAccessoryView: UIView?{ return self.inputFieldView } then inside my viewDidLoad I have: let seperator = UIView(frame: CGRect(x:0 , y: 0, width: ScreenSize.width(), height: 1)) seperator.backgroundColor = UIColor.lightBackground self.inputFieldView.addSubview(seperator) self.inputFieldView.isTranslucent = false self.inputFieldView.setShadowImage(UIImage(), forToolbarPosition: .any) self

How can I get Camera Calibration Data on iOS? aka AVCameraCalibrationData

做~自己de王妃 提交于 2019-12-02 07:15:40
As I understand it, AVCameraCalibrationData is only available over AVCaptureDepthDataOutput. Is that correct? AVCaptureDepthDataOutput on the other hand is only accessible with iPhone X front cam or iPhone Plus back cam, or am I mistaken? What I am trying to do is to get the FOV of an AVCaptureVideoDataOutput SampleBuffer. Especially, it should match the selected preset (full HD, Photo etc.). rickster You can get AVCameraCalibrationData only from depth data output or photo output. However, if all you need is FOV, you need only part of the info that class offers — the camera intrinsics matrix —

Is there a way I can use the Apple San Francisco in a WebView?

三世轮回 提交于 2019-12-02 07:11:00
问题 My CSS style sheet appears to be working fine but I'm not able to change the font to one that closely matches the System font used in iOS 11. Here is what I tried: body, html { color: red; font-family: 'San Francisco'; }; The characters color is Red but font doesn't change. How can I specify a font that closely resembles the Apple System Font in my Xamarin.Forms iOS? 回答1: The system font family name can be retrieved via: UIFont.PreferredBody.FamilyName And on iOS 11 it is: .SF UI Text Old

Is there a way I can use the Apple San Francisco in a WebView?

情到浓时终转凉″ 提交于 2019-12-02 03:43:21
My CSS style sheet appears to be working fine but I'm not able to change the font to one that closely matches the System font used in iOS 11. Here is what I tried: body, html { color: red; font-family: 'San Francisco'; }; The characters color is Red but font doesn't change. How can I specify a font that closely resembles the Apple System Font in my Xamarin.Forms iOS? The system font family name can be retrieved via: UIFont.PreferredBody.FamilyName And on iOS 11 it is: .SF UI Text Old school: <font face='.SF UI Text'>This is the iOS System Font: San Francisco</font> HTML/CSS: <!DOCTYPE html>

how to change uitextfield color in searchcontroller?

我们两清 提交于 2019-12-01 21:46:54
问题 i have embedded SearchController in navigation bar . How to Change UITextField Color The one which Holds search String To White .? 回答1: This will help you to achieve, what you want. Just apply your color combination in this code and see. if #available(iOS 11.0, *) { let sc = UISearchController(searchResultsController: nil) sc.delegate = self let scb = sc.searchBar scb.tintColor = UIColor.white scb.barTintColor = UIColor.white if let textfield = scb.value(forKey: "searchField") as? UITextField

Tweak UI Navigation on iOS 11

早过忘川 提交于 2019-12-01 21:23:44
问题 I have a problem with a navigation bar in iOS 11. I use this code: [UINavigationBar appearance].prefersLargeTitles = YES; ...to set a new style for my app. It works well untill a user pull to refresh on the table view; then it breaks. This is before pull-to-refresh: ...and this is _after: Note: I use the table view controller's built-in pull-to-refresh control. I searched for a solution but it still eludes me. If someone knows how to fix this please drop some advice. Thanks for the support :)

Tweak UI Navigation on iOS 11

*爱你&永不变心* 提交于 2019-12-01 19:05:41
I have a problem with a navigation bar in iOS 11. I use this code: [UINavigationBar appearance].prefersLargeTitles = YES; ...to set a new style for my app. It works well untill a user pull to refresh on the table view; then it breaks. This is before pull-to-refresh: ...and this is _after: Note: I use the table view controller's built-in pull-to-refresh control. I searched for a solution but it still eludes me. If someone knows how to fix this please drop some advice. Thanks for the support :) I have catch this bug too, and we have found the solution. You must constraint your UITableView to