在iOS 12上,要获得一个边框清晰、分隔线清晰的UISegmentedControl,一切都很简单。我所做的就是:
settingControl.tintColor = .clear
let font = myFont
let boldfont = myBoldFont
settingControl.setTitleTextAttributes([NSAttributedString.Key.foregroundColor : UIColor.white, NSAttributedString.Key.font:font], for: .normal)
setti
public override void ViewDidLoad()
{
base.ViewDidLoad();
BuildInterface();
/// Works if first load is this way, but otherwise wont work.
//SegEventHandling.AllEvents += (UISegmentedControl,e) =>
//{
// SegEventHa
我尝试用标题将UISegmentedControl添加到UINavigationBar的底部。但是我不能添加它,也不能将UISegmentedControl添加到tableView.headerView中,因为我需要tableView.headerView中的搜索栏,所以只有一个解决方案需要将UISegmentedControl添加到UINavigationBar的底部。还有人认为我能解决这个问题吗?
下面是我尝试过的代码(使用Swift):
class searchingViewController: UITableViewController{