Questions tagged [segmentedcontrol]

67 questions
0
votes
0 answers

Reset subviews in segmented control

I am using a segmented control to rotate through content, but when I scroll to the end of a subview and switch to another segment, the new segment shows roughly in the same position as the previous segment (i.e. if I scroll to the bottom of segment…
0
votes
0 answers

Can't seem to get SegmentedControl variable to display in listView

I'm an extreme beginner at developing iOS applications, so be easy on me :) I'm creating a core data base where you can add records, then view them on Xcode using Swift 3. I am having some trouble storing/displaying the segmented control for…
ccodes
  • 17
  • 1
  • 9
0
votes
1 answer

SegmentedGroup - last button is squeezed

I am using segmented control from https://github.com/Kaopiz/android-segmented-control and it works quite fine except last button is always squeezed like this: I am adding RadioButtons dynamically using simple layout:
0
votes
2 answers

xcode 9 iOS 11 navigationBar with title and segmented control

I have been using a UIView in my navigationBar as the titleView up to Xcode 8 iOS 10. The view was added in storyboard. In that UIView I have a label representing the title and underneath it a segmented control. This has worked fine up until iOS…
alionthego
  • 8,508
  • 9
  • 52
  • 125
0
votes
1 answer

Basic segmented control not working

I am trying to implement a segmented control into a view controller but every time I try to tap the controller on the simulator, the app crashes. But I really don't know what is from with my code. For added context: Trying to change four labels with…
vandernat.p
  • 153
  • 1
  • 1
  • 10
0
votes
2 answers

Can i move screens by a button according to a segmented control index in swift?

I would like to have a segmented control and by clicking on GO button according to the segmented index it will take me to English or Spanish version of the app is it possible? import Foundation import UIKit class SettingsController: UIViewController…
Moran
  • 55
  • 1
  • 9
0
votes
1 answer

Swift 3 - Disable & enable segmented control

I've got two table views and I switch between them by selecting a segmented control. I also got a search controller with a search bar. When I select the search bar, the segmented control should be disabled, so that you can't select the second table…
0
votes
2 answers

Video autoplayed - ContainerView - Switching between views - Swift 3

I have an HMSegmentedControl used for switching between segments. I used container view to switch between these segments, which works fine, but one of my tabs have a video that is autoplayed on viewDidAppear. So my problem is that as container view…
Mamta
  • 921
  • 1
  • 10
  • 28
0
votes
1 answer

control 3 Segmented

am using Xcode 8.1 , swift 3.0 i have code Segmented its work with 2 control when i try add 3 its not working any idea what is wrong with my code this one work with 2 Segmented @IBAction func showComponent(_ sender: UISegmentedControl) { if…
HÄsh HÄsh
  • 89
  • 1
  • 7
0
votes
2 answers

Swift IBoutlet default value

I have set an IBOutlet function for a segmented control. It will display a value only when a user changes the value, but I am wondering how would I be able to display the default value if the user does not select a different option. For example, a…
Kevin
  • 1,189
  • 2
  • 17
  • 44
0
votes
2 answers

MXSegmentedPager initial page

I have a MXSegmentedPager with 4 pages. How can I set the initial page to display. I tried the following line but it only changes the segmented control's selected index. Displayed page does not change. Im know It's an easy question but could not…
0
votes
2 answers

Segmented disable?

I'm configuring my UI, in my first view all work perfect, but on my second view have a problem with segment button. And don't apear on my view. I can drag but still looks "disable" and generate warning "Position is ambiguous for segmented…
Aris Guimerá
  • 1,095
  • 1
  • 12
  • 27
0
votes
1 answer

Change SegmentedControl index from another viewcontroller before collectionview reload

So the problem I'm having is that I have a CollectionView that loads different data depending on the index. If, for example, I'm at index 0 and the first cell is "hat" and I switch to index 1 and the first cell is "coat". The problem is if I click…
mystic cola
  • 1,465
  • 1
  • 21
  • 39
0
votes
1 answer

How to save segmented control choice

i have added a segmented control in my project to set a notification frequency (like daily, weekly, ecc..). I don't understand how to save the user choice and how to set notification on this choice. I have an AddController where user can insert…
Elis
  • 41
  • 1
  • 7
0
votes
2 answers

switching views between views in ios using segmented control

friends, I need to switch between four to five views off different headers There are four views Example Settings Connections Open trades close trades These are the headers I want to navigate between four pages where i click For example I want to…
user1959030