uisearchbar Questions
2
Solved
I created UISearchBar programmatically as below and the button appears to be of second image.How to clear the white color of search bar and set background colour to Black
var categorySearchBar : U...
Kitchen asked 26/3, 2015 at 8:40
4
I have an app which works nice and without any problems on iOS 10 but with iOS 11 and Xcode Beta 5, I have this strange problem with search bar scope where the scope bar seems like it was cut from ...
Computerize asked 20/8, 2017 at 13:30
23
I have a search bar:
let searchBar:UISearchBar = UISearchBar(frame: CGRectMake((searchView.frame.width - UIScreen.mainScreen().bounds.width / 1.6) / 2, 0, UIScreen.mainScreen().bounds.width / 1.6,...
Respiratory asked 17/11, 2015 at 7:24
4
I've searched various solutions to accomplish this task but they are either in objective C or involve replacing the magnifying glass image.
Previous Posts I looked at:
Change color of magnif...
Homogeneous asked 26/12, 2015 at 16:33
3
Is there a way to reposition UITextField inside UISearchBar?
I'd like to move UITextField inside UISearchBar up a little bit.
Lindstrom asked 22/7, 2011 at 15:42
10
Solved
I'm testing out my UI and I find the search bar a little bit too narrow for my liking. I also want to make sure people with poorer vision or poorer manual dexterity have no issues bringing up the i...
Lozoya asked 16/6, 2015 at 4:44
4
Solved
I have a UITableView with a search bar as header.
I use this function to update my data when the user does a search in the search bar.
func updateSearchResults(for searchController: UISearchContro...
Kennethkennett asked 21/10, 2016 at 13:40
4
Solved
I have implemented searchbar which shows cancel button once user has focus in searchbar. For this I have written searchBar.showsCancelButton = YES; in my searchBarTextDidBeginEditing method. In sea...
Mentor asked 15/2, 2013 at 7:41
19
Solved
I am not able to clear search bar I have tried to make it clear by setting its background color clear and I have also placed one image under searchbar
I have also made clear background of searchba...
Willowwillowy asked 8/1, 2014 at 10:35
9
Solved
I have UIViewController which adopted UISearchBarDelegate. And set its delegate to self with: resultSearchController.searchBar.delegate = self. It works fine I tested it with searchBarCancelButtonC...
Abner asked 4/4, 2015 at 11:21
4
I've a UISearchBaradded to the top of an UITableView.
// init search bar
self.resultSearchController = ({
let controller = UISearchController(searchResultsController: nil)
controller.searchRes...
Astaire asked 1/2, 2016 at 17:7
5
When using the new .searchable() modifier in SwiftUI on iOS 15 I have no way to customize the Search Bar appearance. Specifically, I wan't it to look good with the color I'm using for my Navigation...
Amarette asked 10/10, 2021 at 2:57
7
I'm struggling with this for a while now. Have searched everywhere but the solution provided only works with objective-c. Which consists in
UITextField *txt = [_searchBar valueForKey:@"_searchFiel...
Grimbly asked 20/1, 2015 at 22:45
25
Solved
How can I change the text color of a UISearchBar?
Esposito asked 13/2, 2015 at 12:31
11
Solved
I try to make my searchbar on swift, but I have a problem to dismiss keyboard on screen when I pressed out of searchbar. When I try with textfield, it works perfectly fine with this code.
override ...
Ehrenberg asked 28/4, 2015 at 16:51
6
Solved
I'm trying to create a search bar like this:
But I'm noticing that I'm probably going to have to replace the search bar with my own image because the search bar corners comes out wrong when I se...
Hylomorphism asked 20/7, 2015 at 16:4
6
Most of the example I found is in Objective - C which is very hard for me to understand can someone provide an example regarding this question in Swift. Here is one solution but it is in Objective ...
Alpert asked 9/12, 2016 at 11:29
4
Solved
Currently, I have the default magnifying glass as my search bar icon. However, I want to put a custom image in its place, particularly this image:
Custom Arrow Icon
How would I go about chang...
Voroshilovsk asked 14/6, 2016 at 7:35
4
I wanted to hide 'cancel' button in my iOS search bar. I have implemented the following custom renderer code but it seems not to to work. If anyone knows solution , please share.
public class iOSS...
Lacombe asked 21/11, 2016 at 17:25
2
I have a search view, where user can search by a word or phrase and filter the result.
List {
ForEach(textsData) {text in
if text.sometext.localizedCaseInsensitiveContains(self.searchText) || se...
Ravel asked 30/6, 2020 at 11:11
7
Solved
I am using google places API for autoComplete widget. I am showing the full screen control in ios 9+ using swift. I am adding a full control as given in the docs.
I have added the code as shown in...
Xena asked 11/6, 2016 at 11:18
5
Solved
I want to change clear button color to white. I have tried many ways but no luck.:( I also refer the following link. But it does not work for me.
Please find below code which I have tried. I am ...
Maleki asked 17/5, 2018 at 5:10
4
Solved
I've implemented a UISearchController with its search bar in a navigatiom bar and I would like to make the search bar active when the view is loaded. When I say active, I mean that the keyboard app...
Rooke asked 7/7, 2015 at 16:14
5
Solved
I am working on an new App using UITableView and a UISearchBar in Swift and it's already working fine. But since the final project must have a complete customized searchbar, I had to move to UIText...
Valeda asked 19/10, 2014 at 1:35
6
Solved
I have a -as I hope- very simple question: how to disable an UISearchBar in IOS5 to avoid user interaction? I can't find setEnabled or something like this...
Thanks!
Fever asked 6/2, 2012 at 23:45
1 Next >
© 2022 - 2025 — McMap. All rights reserved.