Uploaded image for project: 'Titanium SDK/CLI'
  1. Titanium SDK/CLI
  2. TIMOB-20016

iOS: Ti.UI.Slider.setValue(val, {animated:true}) fails with error

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Low
    • Resolution: Fixed
    • Affects Version/s: Release 5.1.0
    • Fix Version/s: Release 6.2.0
    • Component/s: iOS
    • Labels:
    • Sprint:
      2015 Sprint 24 SDK

      Description

      Hoping to have found an elegant solution for TIMOB-2908 we found out that the optional second options-argument for Ti.UI.Slider.setValue() does not work either.

      Sample

      var win = Ti.UI.createWindow({
      	backgroundColor: 'white'
      });
       
      var btn = Ti.UI.createButton({
      	top: 100,
      	title: 'Click me'
      });
       
      btn.addEventListener('click', function(e) {
      	slider.setValue(75, {
      		animated: false
      	});
      });
       
      var slider = Ti.UI.createSlider({
      	top: 200,
      	min: 0,
      	max: 100,
      	width: Ti.UI.FILL,
      	value: 25
      });
       
      win.add(btn);
      win.add(slider);
       
      win.open();
      

      Console

      [ERROR] Script Error {
      [ERROR]     column = 17;
      [ERROR]     line = 11;
      [ERROR]     message = "invalid method '(null)'";
      [ERROR]     sourceURL = "file:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/F67B333A-F4FE-4E2E-A67F-C862F77FF882/data/Containers/Bundle/Application/69B03816-179B-4781-9E3E-66F009E6A529/slider.app/app.js";
      [ERROR]     stack = "[native code]\nfile:///Users/fokkezb/Library/Developer/CoreSimulator/Devices/F67B333A-F4FE-4E2E-A67F-C862F77FF882/data/Containers/Bundle/Application/69B03816-179B-4781-9E3E-66F009E6A529/slider.app/app.js:11:17";
      [ERROR] }
      

        Attachments

          Activity

            People

            • Assignee:
              hknoechel Hans Knöchel
              Reporter:
              fokkezb Fokke Zandbergen
              Reviewer:
              Vijay Singh
              Tester:
              Samir Mohammed
            • Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Backbone Issue Sync

                • Titanium SDK/CLI <> Titanium Mobile
                  Synced with:
                  TIMOB-20698
                  Sync status:
                  ERROR
                  Last received:
                  Last sent:

                  Git Source Code