ios - UISearchBar Scope Bar Position? -
I'm here on an iPad application and I want to know that it is possible to transpose the circle by right to my UISearchBar Want to be in the second place? Is it possible to have my scope bar under? Thanks in advance. OK that's my solution to that. . Ill apply control that is divided into my own segments to create a possibility for a search field Even when a user function to a scope list scope once, wantever you like: has many resultArrays in my case, I'll have a web service, and sick Only Hopefully someone else gets help.
go categories = ["Scope1", "Scope2", "Scope3"] segmentedControl.addTarget (self action: "changeScope:", forControlEvents: .ValueChanged) segmentedControl.frame = CGRectMake (8, 5, 800, 30) segmentedControl.backgroundColor = UIColor.whiteColor () segmentedControl.tintColor = UIColor.darkGrayColor () // a scrollview To add this, because there are a lot of sick classes found here You need just that it: scrollView.contentSize = CGSizeMake (segmentedControl.frame.size.width + 16, segmentedControl.frame.size.height -1) scrollView.showsHorizontalScrollIndicator = false; // set the first category segmentedControl.selectedSegmentIndex = 0 scrollView.addSubview (segmentedControl)
function changeScope (this: UISegmentedControl) {switch (sender.selectedSegmentIndex) {}}
Comments
Post a Comment