uislider

sliders slow down and don't move smoothly

北城以北 提交于 2019-12-11 19:37:09
问题 I'm doing an application "Photo Editor". I'm beginner in swift. I have a problem with my sliders. They don't work as I need. May be someone know, how I can resolve this problem? Sliders don't work correctly and I need help with it. I don't know, why it's work like that. import UIKit class ViewControllerFilters: UIViewController { @IBOutlet weak var imageView: UIImageView! var image: UIImage? = nil var filter = CIFilter(name: "CISepiaTone") var filteredImage: CIImage? = nil @IBOutlet weak var

UISlider height not adjusting correctly

落爺英雄遲暮 提交于 2019-12-11 19:13:27
问题 I'm building a UI for a video player and trying to make sure it looks good on all devices (from iPad Pro down to iPhone SE) Unfortunately I'm having trouble with the dynamic sizing of particular elements. Specifically the UISlider and UILabel. For this question specifically I've hidden the UILabel to focus on the UISlider. Here is my setup in the Interface Builder in Xcode: The relevant portion is the constraint: Seek Bar.height = 0.1 x height This should set the UISlider at the bottom of the

Customizing slider track images

痞子三分冷 提交于 2019-12-11 17:16:34
问题 Hi i would like to customize my UISlider similar to the way iBooks has done. I Know that [slider setMaximumTrackImage:] and [slider setMinimumTrackImage:] are to be used.But can someone clarify as to how many dots would i need in the image? 回答1: The images are supposed to be stretchable. From the docs: The orientation of the track image must match the orientation of the slider control. To facilitate the stretching of the image to fill the space between the thumb and end point, track images

jQuery UI Slider Range-ui

徘徊边缘 提交于 2019-12-11 15:49:45
问题 I'm using the jQuery UI slider and had no problems with it in the past. However, now, when I set the slider range to "max" (or "min") and change the value of the slider by dragging, the range part of the ui (with the class "range-ui") does not resize with it! So i don't see the colored part of the current range. I'm pretty stuck, anyone know what the reason for this may be? How it should be: How it is: 来源: https://stackoverflow.com/questions/12299454/jquery-ui-slider-range-ui

How to put Slider together with additional checkbox filter

心不动则不痛 提交于 2019-12-11 15:18:12
问题 I have a problem with working together Ui Slider and checkbox filter. It should working like this: When I use slider to set price target I'm getting some results. Then want those results to be sorted by additional filter using checkboxes. After all I should get exact match to my request. Instead of that I'm getting wrong match. After using slider I get what I want but then when using checkboxes everything crush. I only get checkboxes results, without slider effect. I don't know how to force

Dynamically changing lineWidth using UISlider?

∥☆過路亽.° 提交于 2019-12-11 11:42:59
问题 I have imported the CrumbPath.h & .m and CrumPathView.h & .m into my project from the Sample code provided by Apple. It is working fine, until I want to control the lineWidth of the CrumbPath, In a previous question we solved how to use value from 'Sliderchanged' to populate the 'CGFloat lineWidth =' Linked here: Use value from UISlider to change another variable? Now I have hit the problem that the line is not showing at all in the simulator... CrumbPathView.m #import "CrumbPathView.h"

Unrecognized selector error when implementing a valueChanged action from a UISlider

﹥>﹥吖頭↗ 提交于 2019-12-11 07:35:19
问题 I have a very simple subclass of UIViewController : @interface RoastChickenViewController : UIViewController { IBOutlet UISlider *weightSlider; } @property (nonatomic,retain) UILabel *cookingTimeLabel; - (void) weightValueHasChanged:(id)sender; @end My xib file is set to have a RoastChickenViewController as it's File's owner type and the weightSlider is connected and the 'valueChanged' action is connected to weightValuHasChanged: . Trouble is as soon as I touch the slider (simulator or device

Adding range slider

我的未来我决定 提交于 2019-12-11 07:05:23
问题 I have a problem with adding second slider to the offers filter. There is now one slider and checkboxes to filter products. But at this moment i need to add extra range slider to filter even more accurately. I was trying to do that but nothing works. I would be thankful fo any help. Here's jsfiddle example: https://jsfiddle.net/27zo8eL3/4/ HTML: <ul class="tabela lokata" id="products"> <li class="tabelki" data-price="10000" data-quality="1" data-category="1 2 3 4 ">max 10 000 USD contains

Unable to implement UISlider for Accessibility option in iPad

梦想与她 提交于 2019-12-11 05:23:32
问题 i am trying to implement accessibility option in my book reader app. I have a slider(similar to ibooks) which is used for navigating between pages. i have seen this question posted by another user and implemented the same code in my app. Right now my slider is responding when i'm tapping on it. The voiceover is also speaking the label i have given in the code. But, the problem is that, i am unable to change the slider value and navigate to another page.. I dont know if it is the problem with

How can I call an IBAction in the viewDidLoad?

試著忘記壹切 提交于 2019-12-11 03:19:15
问题 I have a simple slider app. When the slider is changed, the new value is displayed in a UILabel. That works great! When that view is loaded though the label is blank. I want the sliderValue.text to be equal to the default slider value. Here is my code right now (along with my previous attempt): -(IBAction)sliderValue:(UISlider *)sender { sliderLabel.text = [NSString stringWithFormat:@"%g", roundf(slider.value)]; } - (void)viewDidLoad { [super viewDidLoad]; // Do any additional setup after