Changing UISlider value when tapped

In SDK 2.0 UISlider value can be changed by dragging the thumb image or by tapping on the slider control, however in SDK 3.0 slider value only changes by dragging the thumb image.
I have checked UICatalogue example also, the slider values changes on tapping in SDK 2.0 but not in SDK 3.0.
How can I change the value of slider when tapped on certain location on the slider in SDK 3.0 i.e. similar to the UISlider behavior in SDK 2.0

m-awais wrote:
In SDK 2.0 UISlider value can be changed by dragging the thumb image or by tapping on the slider control, however in SDK 3.0 slider value only changes by dragging the thumb image.
Thanks for pointing that out! If it was documented anywhere I sure didn't notice it.
How can I change the value of slider when tapped on certain location on the slider in SDK 3.0 i.e. similar to the UISlider behavior in SDK 2.0
Firstly, check and see if the touch events you want are passed to the super view or its controller. If not, you'll need to subclass UISlider and catch all its touch events. In that case, just be sure to pass all the touches to the super class and you should be ok. I think I'm going to have to do this in one of my apps too, so please let us know if there are any gotchas.
\- Ray

Similar Messages

  • Change item value when a specific item has changed... how can i do that?

    Hi guys, i need to ask something...
    Is it possible to have a process or a computation, that gives value to an item, only when one specific item has changed.
    I have other items on my page too, but this two are related, and i need to give a specific value to the first one, only when the value of the second has changed...
    Help please
    tsveti:)

    Hey Farhan, i guess i need some help on that easy javascript...
    i havent done much thing with it so i have almost none experience with js....
    So in 'HTML Form Element Attributes' for the second item I m trying this :
    onchange="javascript:{document.getElementById('P1_SUBPROJECT').value = '-1';}"
    but when i change the value of this second item, the first one (P1_SUBPROJECT) dont get -1
    what am i doing wrong?

  • How to insert data into a table only when data has changed its value (when compared to the previous inserted value)

    I wish to insert data into a table only when the value of the inserted data has changed. Thus, in a time series, if the value of the data at time, t-1, is 206 then if the data to be inserted at time t is 206, then it is skipped (not entered).
    If the value of the data at time t+1 is 206, it is skipped also; until the value changes, so if the value at t+1 was 205, then that would be inserted, and if at time t+2 the data is 206, it would be inserted too.
    What is the best way to do it without increasing overheads?

    This view works:
    SELECT
    i.IDNO,i.[Date],i.[Level]
    FROM
    mytable i
    INNER
    JOIN mytable
    d
    ON
    d.IDNO
    = i.IDNO-1
    WHERE
    i.[Level]
    <> d.[Level]
    on this mytable below.  A trigger could be quite useful here although I am cautious using them. However I wish to avoid the overhead by not having a temp table (which could be sizable).  mytable below
    should give 3 lines. The IDNO is an identity column.
    IDNO
    Item
    Date
    Level
    1
    X24
    12/23/13 10:41
    22996
    2
    X24
    12/23/13 10:41
    22996
    3
    X24
    12/23/13 9:21
    23256
    4
    X24
    12/23/13 9:21
    23256
    5
    X24
    12/23/13 9:22
    23256
    6
    X24
    12/23/13 9:22
    23256
    7
    X24
    12/23/13 9:22
    22916

  • Preview changes RGB values when resizing images

    Since I upgraded to snow leopard, preview increases the Red spectrum when resizing images (png). Is this a bug or do I need to change a setting to preserve the original RGB values?

    Figured it out. It seems that when you don't specify the BufferedImage that the operation will write too it changes the type to something it uses for the operation. This still seems like it should be a bug to me, but i got around it by doing this:
    BufferedImage tempIMG = new BufferedImage((int)(srcImg.getWidth()*scale),(int)(srcImg.getHeight()*scale),srcImg.getType());
    op.filter(srcImg, tempIMG);
    return tempIMG.

  • COR1 create process order change field value when save(PPCO0001)

    Dears
    When tcode: COR1 create process order, i want to change some fields value on the tab: "Goods Recpt", for example the field: Goods Recipient:                     , anyone konws how to do this? now i am trying to using the exit: PPCO0001( EXIT_SAPLCOBT_001)
    in thie eixt tables POSITION_TABLE : has this field: WEMPF (Goods Recipient) , i add some coding to change this field and save , but the change is not affect on the order . that is when open the order just create , this field is still empty.
    do i need some other process or call some other functions or some other exit to do this?
    thanks a lot for your posting.
    Edited by: Jackyguoguo on Mar 11, 2010 3:51 AM
    Edited by: Jackyguoguo on Mar 11, 2010 4:21 AM

    1. Use BADI: WORKORDER_UPDATE--> Method: BEFORE_UPDATE
    2. Use ASSIGN "(SAPLCOBT)AFPO_BT[]" statement to access and modify the desired fields.
    Regards,
    Suraj

  • How can I change the value in a textfield

    I have some problems with the component textfield.
    For example, if I want to change the value when ocurr event, how can i do that?
    I need that in a several textfields appear the values of a select sql consult, plz help me its more important

    Hi,
    I have tried it works for me, Here is what I did
    1. Drop a textfiled on to the page
    2. Drop a button
    3. In Button action handler put the code as
    textField1.setValue("Creator");
    4.deploy and run the application
    Even I tried with more than one textfield and it works fine.
    ie , textField2.setValue("Sun Java Studio Creator"); in the same button action.
    MJ

  • How to change variable values ?

    Dear friends,
    How to change variable values when we are broadcasting the Queires ?
    Do we need to change them everytime ?
    Thanks,
    N

    Hi,
    Please go through it.
    /people/ramkumar.ghattamaneni/blog/2008/02/25/using-variables-while-broadcasting-queries-to-the-portal-in-bi-7
    Regards,
    Ramkumar.

  • I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.

    I cannot change the value in about:newtab from "newtab" to "blank." The dialog is displayed but when I click Ok, the value is not changed.
    ===Answer===
    Comment on usual method and solution, by a forum Moderator.
    As long as there are no confounding factors, such as certain extensions, or a user.jsfile the procedure is as follows
    # Open a new tab and type "about:config" in the address bar.
    # In the Search bar type: "newtab"
    # Locate and double click "browser.newtab.url"
    # In the "Enter String Value" box change "'''about:newtab'''" to "'''about:blank'''" and click OK.
    # Verify that the value has changed and now all new tabs will be blank.
    See post under by ''pirate048'' [/questions/976589?page=2#answer-509482] ~J99

    Have to say that I rather agree with Mark..all we want is a simple, unadorned clean page that doe not track and show usage!! WHY NOT!! Is it too simple for developers..we aren't all (nor do we want to be!) software experts! Come on Mozilla..tidy up and clean up..it might be a quicker programme too!!

  • Dump when changing the value for a field (of 13 decimals) in alv grid.

    Hi Group,
    Its giving a dump when user is trying to change the value.
    dump description: Unable to interpret "70,000 " as a number.
    what is happening here is, the original value is 50,000 and he is deleting 5 and replacing it with 7, here its throwing the dump.
    If he removes the complete number 50,000 and then gives 70000 its  taking the value.
    I tried to use, the decimals options in alv field catalog but to no joy.
    Please can you give me an advice on this.
    Many Thanks.

    the problem is the comma in the 70,000....that's an alpha character.... Normally, we expect SAP to display numeric fields in a appropriate format, based upon their numeric type, but trying to forcibly insert '70,000' into a true numeric-type field can generate an 'unable to interpret xxx,xxxx  as number' error.
    You could experiment with changing your ALV column to a char17 (or appropriate width) and putting your numeric value into that to display, then converting back to type P, or other field type in the table, in a column that is not displayed, when the user changes the value....  essentially two columns, one not displayed with a routine to copy/convert the numeric field into the alpha field and the reverse when the field is changed.
    But, the better solution is probably for the user to understand that they're seeing a formatted numeric field, and that they need to replace the entire value with the only possible punctuation being a decimal and (if necessary) a negative sign.

  • Swf in IE 7 not changing value when variable value in flashvar changes...

    Hi Friends,
    Below is decription of the file
    1. I have a flash file which is loading php variable through flash vars.
    2. The flash var variable contains the .txt filename in which data is kept.
    3. When I open the php page the swf loads with variable having .txt filename and value containing swf path.
    4. I have created timer in flash which check for change of value.
    5. When value changes the other flash file loads.
    6. All this works fine in all browsers except IE 7
    ONLY ISSUE WITH IE 7 is
    1. The swf not changing when value changes.
    WHAT I NOTICED
    1. When we click to load another tab in the same IE 7 browser the changed value that is another swf loads.
    WHAT I THINK
    1. Refreshing browser when value changes will solve the issue in IE7.
    Pls. let me know your suggestion and if possible solution to this issue.
    Thanks in advance.
    With Regards,
    Sagar S. Ranpise

    copy and paste your embedding html code.

  • Illustrator cs5 changes Kuler color values when importing, Help!

    I am using Illustrator cs5. I access the Kuler Color theme feature for color themes. I will select a them from the Kuler feature
    and then choose to add that theme to my swatch panel. I then check the individual colors in the color panel. Here is the
    problem: when illustrator brings in the Kuler colors to the Illustrator color panel it will change the values of that color which
    changes the actual color. For instance a bright green becomes a muted turquoise. This conclusion is not by my sight,
    because I have opened the specific color theme at the Kuler Web sight and obtained the CMYK values for those colors,
    and then gone back to the Illustrator color panel and compared then values there. The values are changed which creates
    a different color --- obviously. So how can I use the Kuler feature when illustrator changes the values on me which then
    changes the color? Help

    I dont know what my color settings are at this point.
    I download the Kuler color theme straight from the Kuler panel open on my desktop. I open
    the drop down menu options and choose: add this theme to your color swatches. The
    theme is moved over to the swatch panel while I am using Illustrator.
    I don't know what you mean by your last question.

  • Text field values changing to "true" when I click submit by e-mail button

    I have some logic in my e-mail submit button to determine who needs to receive the form based on information in the form.  Based on my sample code, when I click the submit by e-mail button and TextFiel4.rawValue is D781008CX03, it will actually change the value in TextField4 to "true" when submitting the form.  What can i do to fix this issue?
    if 
    (TextField4.rawValue = "D781008CX03" && CheckBox10.rawValue == true){ 
    var myDoc = event.target;myDoc.mailDoc(
    false, [email protected]
    , "", "", "Request to Add "
    +FuelRating.rawValue , "You have a new industrial request to add "
    +FuelRating.rawValue);}

    Ahhh!!
    Amature mistake  .  Thank you for the help and the quick response!!

  • How to get value when OAMessageLovInputBean Change

    How to get value when OAMessageLovInputBean Change
    I want to get lov value atfer user select value return page

    As you wanna get the value in process form request, get the value from the VO column attached to the bean, if not you can attach a tranient Vo attribute!
    --Mukul                                                                                                                                                                                                                                                                                                                                                                               

  • How to change row background when the value was changed?

    hello expers!!
    i need your help...plz help me.
    i want my table row(specific) background changes when the user changed the value in a cell. I am able to know that a value in a cell was changed but the problem is i dont know how to change row color background. I've researched over the internet on how to solve this problem but nothing was found.
    please see the link to help you visualize what i mean. tnx!
    [http://www.flickr.com/photos/28686474@N04/2708299927/]
    tnx in advance!! code snippet will be a great help...
    Edited by: kagaw3000 on Jul 27, 2008 8:22 PM

    final JTable table = new JTable(data, columnNames) {
    int lastRowChanged = -1;
    @Override
    public void tableChanged(TableModelEvent e) {
         super.tableChanged(e);
         lastRowChanged = e.getFirstRow();
         repaint();         
    @Override
    public Component prepareRenderer(TableCellRenderer renderer,
                   int rowIndex, int vColIndex) {
    Component c = super.prepareRenderer(renderer, rowIndex, vColIndex);
         if (rowIndex == lastRowChanged) {
              c.setBackground(Color.RED);
         } else { 
              c.setBackground(getBackground());
         return c;        
    ...........this code will changed background color when data was changed BUT if i changed another data in another row the previous backgound color(RED) will be erase. To make it more clearer, it will only change background color of a row only to one row NOT to multiple rows(that is being edited).

  • BEx crashes when changing variable values

    Hi all,
    We're having a problem with BEx.
    It crashes when trying to change variable values.
    We've been looking into syslogs and dev logs and so on,
    and found that the cpic connection has been disconnected
    before the crash. BUT we cannnot find out what is actually
    disconnecting the session.
    Well, at least F/W wasn' the cause. Have check the logs.
    Any ideas? Thx in advance!
    Yuko
    Below is our info.
    BEx: BI 7.10 sp7
    BI: BI 7.0 SAPKW70017
    <BI syslog at the time of BEx crash>
    15:40:36 RD                                 Q0  I Operating system call recv failed (error no. 232 )
    15:40:36 RD                                 S2  3 Connection to CPI-C client 586 was closed
    15:40:36 RD                                 S7  4 > Partner LU name:
    15:40:36 RD                                 S0  R > Host: 172.19.xx.xxx
    15:40:36 RD                                 S0  I > Partner TP Name: EXCEL
    15:40:36 DIA  000 500 BIB103                R4  9 Communication error, CPIC return code 020, SAP return code 223
    15:40:36 DIA  000 500 BIB103                R5  A > Conversation ID: 82142217
    15:40:36 DIA  000 500 BIB103                R6  4 > CPI-C function: CMSEND(SAP)
    <dev_rd log trace level 3>
    GWRD LOOP **********
    I'm in GwReceive
    SiSelPSelect: start select (timeout=20000)
    Thu Apr  9 15:40:36 2009
    SiSelPNext: an error occurred in sock 31
    NiSelISelectInt: error detected on hdl 18 / sock 31
    NiSelIListInsert: add hdl 18 [17] to sel-list (0) of set0
    NiSelISelectInt: 1 handles selected (0 buffered)
    main: NiSelNext (ni_hdl=18, read=1, write=0, connect=0, hdl_info=0x6000000000587400)
    request from CLIENT
    GwRequest: request from client 586
    GwGetMemory: allocated 0x600000000089bee0 (len=34615)
    NiHsLGetHostName: found address 172.19.xx.xxx in cache
    ***LOG Q0I=> NiIRead: recv (232: Connection reset by peer) [nixxi.cpp 4423]
    ERROR => NiIRead: SiRecv failed for hdl 18 / sock 31
        (SI_ECONN_BROKEN/232; I4; ST; 172.19.xx.xxx:1097) [nixxi.cpp    4423]
    Adresse   Offset  bad request
    GwSaveErrInfo2: save err info (225)
    ***LOG S23=> GwIDisconnectClient, client disconnected (586) [gwxxrd.c     11657]
    ***LOG S74=> GwIDisconnectClient, client disconnected ( SY08472) [gwxxrd.c     11665]
    ***LOG S0R=> GwIDisconnectClient, client disconnected () [gwxxrd.c     11704]
    ***LOG S0I=> GwIDisconnectClient, client disconnected ( EXCEL) [gwxxrd.c     11713]
    LOCATION    SAP-Gateway on host mxxx112 / sapgw01
    ERROR       connection to partner '172.19.xx.xxx:1097' broken
    TIME        Thu Apr  9 15:40:36 2009
    RELEASE     700
    COMPONENT   NI (network interface)
    VERSION     38
    RC          -6
    MODULE      nixxi.cpp
    LINE        4423
    DETAIL      NiIRead
    SYSTEM CALL recv
    ERRNO       232
    ERRNO TEXT  Connection reset by peer
    COUNTER     790

    Just FYI.
    After all, we ended up applying BEx addon patch 9.
    The problem about the BEx crash seemed to be fixed in patch 8, but another problem (I heard it was about something to do with report jump function) was not fixed. As a result, we skipped patch 8 and applied 9.
    Both problems were fixed in patch 9.
    Many thanks to SDN informations.
    Yuko

Maybe you are looking for

  • Mini Bridge PS CS6 "Waiting for Bridge"? mac os x 10.8.3

    Mini bridge says "waiting for Bridge" II removed /library/application Support/Adobe/Switchborard folder and alo the switch board preference file in home directory, restarted computer, etc and message changed from "no items found" to "Waiting for Brid

  • Final Cut Pro 3-Mac Pro 3.2 Xeon

    I'm trying to install my copy of FCP 3 onto my Mac Pro 3.2, and every time I try to launch it gives me the error "Final Cut Pro" requires a System ID file which is missing or Invalid. Please reinstall using the original CD that was used to install Fi

  • How to set the default SASL auth mech

    Does any body know how I can set the default SASL auth mechanism? I can currentlly authenticate to slapd only when requesting manualy CRAM-MD5 and I would very much like to set that as the default. In a non-macosx server environment creating a /usr/l

  • How do I find contact info for an app vendor

    I purchased the cinema app developed by crazy labs.  This app is supposed to have 1700 movies. It only has movie trailers. How do I contact the vendor?

  • Flash player plugin fail

    Was told to uninstall old flash player befor reinstalling. Do I tell it to delete everything? Not sure how to uninstall. thanks