uisegmentedcontrol

    0热度

    1回答

    我想基于视图标签设置UISegementControl的选定索引。 我有一个特殊的标签列表,可能随时间而改变。 我运行for循环来设置视图的标记。 [[[self.segmentDuty subviews] objectAtIndex:i] setTag:someListofTags[i]]; 这工作正常,因为我可以按段,并得到正确的标记。 NSInteger tagnumber = [[se

    2热度

    1回答

    我建立我的第一个iOS应用程序,我想创建这样的: UISegmentedControl有大约4段(例如所有,电影,电视,音乐) 时如电影被选中,UITableView应该显示预定义的部分(例如低俗小说,12个愤怒的男人,搏击俱乐部,黑暗骑士) 每个部分将包含(也是预定义的)细胞(例如在纸浆小说下将存在细胞:John Travolta,昆汀·塔伦蒂诺,乌玛·瑟曼,塞缪尔·杰克逊) 还,我想有一个段的

    0热度

    1回答

    我在UIViewController中有一个UITableView。有两个自定义单元格。其中一个有一个UISegmentedControl。 到目前为止,一切都很好。 当我点击控件时,分段控制值改变并且IBAction函数按预期运行。 问题是,选定的索引总是显示为-1,(也没有选择)。 我在这里错过了什么? 下面是值的变化代码: @IBAction func recurranceChanged(s

    2热度

    1回答

    我在表格单元格中存在分段控制问题。分段控制 segmentedFilter.addTarget(self, action: #selector(ProductListFilterCell.filterSelected), forControlEvents: .AllEvents) 采取任何行动的目标函数: func filterSelected() { if let order =

    4热度

    2回答

    有没有什么办法可以减小字体大小,可以适合UISegmentedControl的单个部分? 已经尝试了许多事情类似, [[UILabel appearanceWhenContainedIn:[UISegmentedControl class], nil] adjustsFontSizeToFitWidth]; [[UILabel appearanceWhenContainedIn:[UISegm

    0热度

    1回答

    它看起来像UISegmentedControl不允许用户在默认情况下做多选。 我见过一些obj-c的github库,如何允许使用swift进行多段选择? 怎么做多项选择在迅速分段控制?

    1热度

    3回答

    UIFont font = [UIFont boldSystemFontOfSize: 12.0f]; NSDictionary attributes = [NSDictionary dictionaryWithObject: font forKey: UITextAttributeFont]; [segmentedControl setTitleTextAttributes: attribute

    0热度

    1回答

    我不知道如何让用户选择本地通知的重复间隔。我已经链接到两个图像,其中详细描述了问题。 This is the image of the file where I need to insert the choose from the segmented control And this is the image of the file where the segmented control is p

    0热度

    1回答

    我有这个UISegmentControl三段,我按其中之一,它突出显示。然后我按下一个按钮来隐藏UISegmentControl,当我回到UISegmentControl时,我按下的最后一个段不再被高亮显示。我将如何解决这个问题? func pressSettingsButton() { var customSC = UISegmentedControl() let item

    0热度

    1回答

    对于我们正在放入应用程序的临时修复,我有点奇怪的问题。出于可怕的原因,我们有三段的分段控制,但是我们在三个tableView数据源中有三个每个分段控件的实例(不要问,我们希望这不是最终的解决方案......) 无论如何,由于这种可怕的设置,当我们选择一个新的细分市场时,细分控制的实例A会得到它选择的新索引。然后我们换出数据源并在表格上呼叫reloadData。现在我们有分段控件的实例B,其索引与实