UISegmentedControl & "prompt" property Problem

Hello everybody,
I'm developing an application with the official iPhone SDK.
I'm trying to put a UISegmentedControl in the title of a UIView. For this I used the style UISegmentedControlStyleBar.
However, I also would like to put a title to denote what the view actually does. For this I used the "prompt" property of the UINavigationItem that sets a single line of text at the top of the navigation bar.
This is the code I used:
self.navigationItem.prompt = @"My title";
UISegmentedControl *segmentedControl = [[UISegmentedControl alloc] initWithItems: arrayOfTitles];
[segmentedControl addTarget:self action:@selector(action:) forControlEvents:UIControlEventValueChanged];
segmentedControl.segmentedControlStyle = UISegmentedControlStyleBar;
self.navigationItem.customTitleView = segmentedControl;
The view is displayed correctly (I can see the text of the prompt property and the segmented control). However, the segmented control doesn't seem to react when I click on it. It does so if and only if I click on the very high part of the control. It really seems the hit mask hasn't been moved down.
Any ideas to solve this?
Thanks
Matteo
Message was edited by: Darkk

nobody with the same issue?

Similar Messages

  • Forms 6i Prompts (visual problems)

    We are converting from 4.5 to 6x. I have completed all the preliminary preparation for the project in 6.0. As 6i is production, I installed this version to determine if we will use this release.
    The Canvas Background Color property is gray, with a Item Background Color property of white. 6.0 displayed the prompt with a gray background as the Prompt does not have a Prompt Background Color property of its own (used the Canvas Background Color or is a transparent object?).
    With 6i, the Item Prompt uses the Item Background Color property. There appears to be no means of overriding this new appearance!
    We will not be changing the color scheme for our client base. Some clients are still getting accustomed to the new (old) GUI interface.
    Is this a bug that 6i has introduced or was this purposely changed? If this is a bug, when will a fix be available, as this does not visually display well.
    If this is the new method for displaying prompts, a new Item Property needs to be added:
    Prompt Background Color
    Please respond ASAP as the conversion to 6x will begin in July and I need to determine which release to use (6.0 or 6i).
    Thanks.
    null

    Hi John:
    I have the same problem -you have seen my post-, but only with Forms 6i. I have used version 2, 5 and 6 and i don't have any problems with PROMPT BACKGROUND COLOR.
    Then, it's a bug and i recommend you use Forms 6 with patch 7.
    null

  • Crystal Reports Viewer - pdf, prompts, icons problem

    Hi all,
    I am a new in BO.
    I have some answer about Crystal Reports Viewer (not about setup.exe but about CRV application that I uploaded on Tomcat)
    1) The old version (11.5) works good, only Export to PDF functionality is wrong. There are in the pdf file wrong display of specific czech characters (charset)
    2) A new version, Crystal Reports Viewer 2008, show the same pdf mistake. I have J2SE Runtime Environment 5.0 Update 4 and Apache Tomcat 5.5.9.
    I upload application on Tomcat, configuration (web.xml, crconfig.xml and context.xml) is the same with version 11.5.
    Crystal Reports Viewer 2008 displayed reports, but the problem with PDF is present. The second problem is the look of CRV. First one, the icons (for export, print...all icons) are not displayd. I can copy old jar files into java (in application folder C:\WebReports\WEB-INF\lib), but then CRV looks like old version.
    And CRV 2008 doesn't display listbox in dynamic prompt on crystal report. What shall I set to displaying prompts in CRV 2008 (on CRV or on report in Crystal 2008)?
    Have you some idea? What and how can I set and configure application and where?
    Veronika

    Hi,
    To confirm, are you talking about "Crystal Reports Viewer 2008" http://www.sap.com/solutions/sapbusinessobjects/sme/reporting/viewer/index.epx
    I suggest sending in the report, in the viewer, select "Help" - "General Feedback" and then pick the option to attach the report.  In a couple of months there will be a refresh version of this view which will have Czech language support so it would be good if we could test out your PDF issue.
    As for showing parameters in the prompt panel in Crystal Reports Viewer 2008, since the viewer cannot refresh the data, make sure the parameter does not used in the record selection formula but only in the saved data selection formula.

  • NJawin: User32 and property problems

    Hi everybody, especially Vitaly Shelest ;)
    I'm using latest NJawin (1.1.31) and jsdk1.4.2 for wrapping some DLLs. It works, but there are several problems:
    1) When null and "" (empty strings) are passes in IDispatch property put methods for String properties, there is an exception thrown;
    2) HelloJava sample from Jawin distribution won't work. It ends with
    Exception in thread "main" java.lang.OutOfMemoryError: requested -627650838 bytes
    It won't work with Jawin either.
    It's sad, but there is no source code available for NJawin. So I experience a little bit of helplessness =(
    Did anybody manage to create a window with NJawin WinAPI fuctions? Do you know any workarounds for String properties in IDispatch?
    Regards,
    Vladimir Kirillov
    vladikir SOBAKA pochta TOCHKA ru

    Hi Vladimir,
    I have made a test: wrote COM server DLL with one property testString
    STDMETHODIMP CnjTest::get_testString(BSTR *pVal);
    STDMETHODIMP CnjTest::put_testString(BSTR newVal);and java code
    import NJAWINTESTLib.InjTest;
    import NJAWINTESTLib.njTest;
    import com.develop.jawin.COMException;
    public class jawinTest {
        public static void main(String[] args) throws COMException {
            InjTest obj = new InjTest(njTest.clsID);
            obj.settestString(new String());
            String str = obj.gettestString();
            System.exit(0);
    }When the parameter in settestString is null njawin generates VARIANT type VT_NULL. This is wrong. If you want to path an empty string use new String() or "". This is equivalent to null and njawin will generate VARIANT with type VT_BSTR.
    Vitaly

  • Clean prompt field problem - OBIEE 11g

    Hello guys!
    We are facing this issue: we have a prompt with 3 fields: Name, Document Number, Account Number. Each of this three identifies a person. We have an "or" relation between these fields. So, if I put Name, I don't want put Doc Number, etc.
    So, the problem is when I had filtred by Name (for example) and last, I want filter by Acc Number, so, I must "clean" Name field (like using "backspace" on text in prompt) and last select an Account Number. When I click "go", report doesn't filter by any field, and gets all rows in results.
    I think that this problem is because when we "clean" Name field, and try to filter again, it is putting "null" instead of default value in "name" field.
    Any ideas? It is possible to "intercept" filter values and convert that "null value" in "zero value" or "generic value"?
    Thanks for your time!
    Regards,
    Ariel

    I would add a Filter View to the Compound Layout and check if there really is a Null being passed. It doesn't sound like that should happen automatically unless there's a space or something being left. Also, are all the prompts Text Fields?
    Please assign points if helpful/correct.

  • Httpservice url property problem

    hello everyone
    I need to include non latin characters in my httpservice url property. It points to a file. (http://www.myurl.com/nonLatinCharactersInFilename.xml)And its giving me errors.
    When I check the error, the url appears like so: http://www.myurl.com/??????????????????.xml
    Im using these character set everywhere in the code and there are no problems except when im sending the httpservice call.
    I also have same characters in the result event. and theres no prpblem with that.
    Any ideas how I can include these file names in the url property? or is there another way?
    In my app the user clicks a list (of file names with non latin characters) and an http service is sent to load the corresponding file to a richEditableText component.
    every thing except the non latin character part works fine
    any help in the right direction will be appreciated.
    thanx

    Hello,
    I am not shure, but I think you have to use a webserver, with
    a folder directing to your desktop. Then you can use something like
    that:
    http://localhost/Desktop.
    Otherwise you can try file:///C://Documents and
    Settings/[username]/Desktop/flex/...xml
    I hope this will help

  • DateTimeConverter pattern property problem

    Anyone else have a problem entering a date/time pattern using the custom editor button [...] in the Properties tab?
    Every time I enter a pattern (eg. EEE, d MMM yyyy HH:mm:ss zzzz) using the pop-up custom editor (accessed by clicking the little [...] button in the Properties tab for a seleted dateTimeConverter object) the pattern property doesn't take. After clicking 'OK' in the custom editor the pattern property remains blank.
    The pattern is saved if you enter it directly in the Property tab text box without using the custom editor pop up.
    Is this supposed to happen?
    I noticed this as I went through the 'Tutorials About Converters' at http://devservices.sun.com/premium/jscreator/standard/learning/tutorials/converters.html - specifically Example Three: Using Converters for Date and Time Formatting.
    Many thanks to anyone who can explain what I am doing wrong.
    Regards,
    J

    I put this little method into the session bean and it works well for me. I wrote it so it is in the pattern that
    MySql likes for datetime.
    Its handy for calling anywhere in the programme.
    public String getTimeStamp(){      
    SimpleDateFormat formatter= new SimpleDateFormat("yy-MM-dd HH:mm:ss");
    Date currentTime_1 = new Date();
    String dateString = formatter.format(currentTime_1);
    return dateString;
    Hope this helps Phil.

  • OO4O 10g and VB6 Bookmark Property Problem

    Hi All,
    I'm facing a problem with the BookMark property. It's throwing OIP-04121 Error.
    Below are the details
    Controls used:
    1) SSDBGrid of v3.11
    2) ORADC of v10g
    Code:
    Private Sub gridMain_RowLoaded(ByVal Bookmark As Variant)
    Dim PubHol As PUBLIC_HOLIDAY
    Dim Rs As Object 'Oracle DynaSet
    Set Rs = datMain.Recordset.dbClone()
    Rs.Bookmark = Bookmark ' Getting OIP-04121 Error here
    If Rs("year") = 0 Then
    gridMain.Columns(1).text = "----"
    Else
    gridMain.ColText(1) = Rs("year")
    End If
    The code is working fine in VB3.0, OO4O 1.0 and Sheridan Data Widgets 1.0e. However it's throwing error with VB6, OO4O latest versions and Sheridan Data Widgets 3.11.
    Please help me I tried many ways but failed. Kindly provide some alternate way to achieve this BookMark.
    Thanks and Regards,

    Hi All,
    I'm facing a problem with the BookMark property. It's throwing OIP-04121 Error.
    Below are the details
    Controls used:
    1) SSDBGrid of v3.11
    2) ORADC of v10g
    Code:
    Private Sub gridMain_RowLoaded(ByVal Bookmark As Variant)
    Dim PubHol As PUBLIC_HOLIDAY
    Dim Rs As Object 'Oracle DynaSet
    Set Rs = datMain.Recordset.dbClone()
    Rs.Bookmark = Bookmark ' Getting OIP-04121 Error here
    If Rs("year") = 0 Then
    gridMain.Columns(1).text = "----"
    Else
    gridMain.ColText(1) = Rs("year")
    End If
    The code is working fine in VB3.0, OO4O 1.0 and Sheridan Data Widgets 1.0e. However it's throwing error with VB6, OO4O latest versions and Sheridan Data Widgets 3.11.
    Please help me I tried many ways but failed. Kindly provide some alternate way to achieve this BookMark.
    Thanks and Regards,

  • Bound property problem

    Can the property binding in javabeans work if the bean doesnt have a "PropertyChange" method implemented in it. If yes, then how ?
    Similarly, how does a bean handle the case of multiple bound properties. This question arises because, there is only one "propertyChange" method in a bean and it recieves a PropertyChangeEvent parameter. In case of multiple bound properties how does a bean know which properties propertychange event has been fired?

    But this means that the property change listener has to be aware of the names of all the properties that it can bind, which is a severe limitation ! This is because , if I want to make a bean which has a property color , then it would be very difficult to make the bean so generic so that it can be bound to any bean containing a property representing a color. Unless and Until I know the name of the property of the source bean, I cannot make use of the propertyChange method of the destination bean to handle the change in property.
    The problem comes when a bean has multiple properties . In that case, in it's property change method, it has to filter based on the names which are not known until runtime.

  • Component binding property problem

    following problem:
    I have a form where I built a dataTable with a dynamic number of columns. To achieve this, I used a component binding (backing bean) to dynamically add columns.
    The form is used for different kind of queries and every query has it's own number of columns. The query-identification is submitted via a request parameter.
    All the data in the query-form are o.k. (bean values) but the backing bean will not be called in case of a new request (same jsf-form, but other request-parameter).
    example:
    http://host/url.faces?id=1
    http://host/url.faces?id=2
    <h:dataTable id="test"
                 value="#{test.values}"
                 var="i"
                 rendered="true"
                 binding="#{test.table}">
    </h:dataTable>whereas test is a bean which is created in a servlet listener and also updated with the corresponding id from the request.
    The table-property depends on the id given in the request.
    why ?

    ok, I found out, that using the <h:commandLink> with a param-tag solves this issue.
    Now the backing-bean's method to build the table is all-time called.
    And it works even after an expired session.
    But unfortunately I do not really know, why it works this way and the other it doesn't...

  • [Solved] $LANG and zsh prompt color problems

    Hi,
    I recently discovered, trying to use Newsbeuter, that, in X, certain parts of my profile aren't set. Until now it only seemed to be $LANG, which is empty if I echo it from urxvt in XMonad, but yields the correct setting if I do the same in a tty.
    To make things worse now, my zsh seems to be acting up. I have differently colored prompts for my normal user and root. But since a few days ago, the root colors aren't applied unless I source .zshrc again after sudo-ing.
    I updated a lot recently and it's gotten hard to track these issues, especially the $LANG one, to a specific update. The only thing I know is that my desktop, running Kdemod, doesn't have these problems.
    I'm using Slim and XMonad. Neither issue is limited to a certain terminal.
    Most of my configs can be found in my GitHub dotfiles repository. If anything's missing to get a clear picture, ask for it.
    My rc.conf can be found here [Gist].
    Last edited by count-corrupt (2010-08-22 13:33:06)

    jac wrote:
    I finally went through the new sudoers file and got mine to work, see this thread for details. Using that, and using a workaround for libetc, your prompt works for me.
    You appear not to use libetc, but if you do and don't also have root set up to use libetc, you will need to create a link to/from ~/.zshrc from/to ~/.config/zshrc
    I actually just solved it in another way. Your original point, that sudo changed it's default behavior was the key. In the official zsh documentation somewhere it says that all settings that are wanted for root should be put into /root/.zshrc. I just did that and it works.
    Your solution works too by the way. Just enabling
    Defaults env_keep += "HOME"
    does the trick and also (logically) re-enables other things that I hadn't even realized were gone yet like syntax highlighting in vim. I guess I should read into the nature of said privilige escalation problems. Maybe there's a way to selectively keep parts of HOME.
    So thank you very much for the help.

  • Classpath and property problem in services

    Hi, all,
    I've had a number of problems getting the Stockquote example to run properly. This seems to be due to a problem that services don't get either classpaths or properties when they start.
    The first manifestation of this problem came when the proxySet, proxyHost, and proxyPort environment variables weren't getting set properly in class services.stockquote.Stockquote. The symptom was that url.openStream () timed out because the proxy was not set correctly.
    The second symptom comes when"JavaPort" is used as the port on the client. Despite every attempt I've made to put services.stockquote.Stockquote on the classpath, URLClassLoader will not find this class. However, a call to Class.forName("services.stockquote.Stockquote") in Main.java, just before the bottom of the stack, works! It works in both the client and the server!
    So, could someone please tell me why the classpath and properties are getting shucked, and how to get them right?
    I'm on Windows 2000 :p using JDK 1.3.1 and Tomcat 4.0.
    Thanks,
    - Steve.

    Vivek, I think this belongs in a different thread. Also you'll need to say what problems you're having.
    The only thing that definitely needs to be changed about the example is that the service may fail if it's run behind a proxy server. You'll need to set the following System properties:
    System.setProperty("proxySet", "true");
    System.setProperty("proxyHost", "your.proxy.com");
    System.setProperty("proxyPort", <your proxy port>");
    If this isn't done you'll get an exception like the following:
    Exception in thread "main" com.ibm.wsif.WSIFException: SOAP Fault:SOAP-ENV:Server Exception from service object: Operation timed out: connect
    -S.

  • OBIEE PROMPT DISPLAY PROBLEM

    Hi,
    I want to display a prompt in 2008,2009 but automatically it displays 2008.00,2009.00.
    I used truncate but it did not work.
    Pls tell me if there is any function to do it.
    Thanks-Bhaskar

    Hi.
    In dashboard, click on fx...
    Put CAST("YEAR" AS INTEGER)
    Should work.
    Permanent solution, do it RPD...
    Mark if correct,
    fiaz

  • JSF/Spring integration - managed-property problem

    I am using JSF 1.1_01 (MyFaces 1.1), Spring 1.2, Ajax4Jsf.
    The JSF application has h:selectOneMenu .
    On change event of h:selectOneMenu sets "selectedValue" into backing bean as shown below:
    page.jsp
    <h:selectOneMenu value="#{test.selectedDevice}" >
    <f:selectItem itemValue="0" itemLabel="--New--"/>
    <f:selectItem itemValue="1" itemLabel="WorkStation"/>
    <f:selectItem itemValue="2" itemLabel="Router"/>
    <f:selectItem itemValue="3" itemLabel="Switch"/>
    <ajax:support action="#{test.loadDevice}" event="onchange" reRender="t2,t3,t4,t5"/>
    </h:selectOneMenu>
    TestBean.java (Backing Bean)
    public String getSelectedDevice() {
    logger.info(" *** In getSelectedDevice *** ");
    if (selectedDevice == null) {
    selectedDevice = "0"; // This will be the default selected item.
    return selectedDevice;
    public void setSelectedDevice(String selectedDevice) {
    logger.info(" *** In setSelectedDevice *** ");
    this.selectedDevice = selectedDevice;
    Here are the configuration file snippets for integrating JSF Spring
    web.xml
    <listener>
    <listener-class>org.apache.myfaces.webapp.StartupServletContextListener</listener-class>
    </listener>
    <context-param>
    <param-name>contextConfigLocation</param-name>
    <param-value>/WEB-INF/applicationContext.xml</param-value>
    </context-param>
    faces-config.xml
    <application>
    <variable-resolver>org.springframework.web.jsf.DelegatingVariableResolver</variable-resolver>
    </application>
    <managed-bean>
    <managed-bean-name>test</managed-bean-name>
    <managed-bean-class>test.TestBean</managed-bean-class>
    <managed-bean-scope>request</managed-bean-scope>
    <managed-property>
    <property-name>deviceManager</property-name>
    <property-class> test.DeviceTypeManager </property-class>
    <value>#{deviceManager}</value>
    </managed-property>
    </managed-bean>
    The above code results in the following error
    javax.faces.FacesException: Cannot get value for expression '#{test.selectedDevice}'
    The error occurs only if i include <managed-property> inside the <managed-bean> in faces-config.xml.
    The moment i remove <managed-property> from face-config.xml the error disappears & page gets rendered properly.
    The purpose in having <managed-property> inside managed-bean is to call Spring's Manager class (i.e. deviceManager) from JSF application
    Any pointers/suggestions in resolving the error will be highly appreciated
    Regards
    Bansi

    The TestBean have a property for DeviceManager along with setter/getter methods as shown below. Sorry for not including in earlier posting
    TestBean.java (Backing Bean)
    private DeviceTypeManager deviceManager;
    public DeviceTypeManager getDeviceManager() {
         return deviceManager;
    public void setDeviceManager(DeviceTypeManager deviceManager) {
         this.deviceManager = deviceManager;
    Here are the two scenarios
    Scenario 1 : without <managed-property> the code works fine
    Scenario 2 : with <managed-property> the code results in following error
    javax.faces.FacesException: Cannot get value for expression '#{test.selectedDevice}'
    Scenario 1 has only JSF whereas Scenario 2 has JSF-Spring integration
    The Scenario 1 works absolutely fine as the expression '#{test.selectedDevice}' gets its value from setter/getter method in the backing bean(TestBean.java) . This is expected behaviour & wondering why it doesn't work similarly in Scenario 2 instead it complains
    Cannot get value for expression '#{test.selectedDevice}'
    I am willing to upload the war file. Any pointers/suggestions in resolving the error will be highly appreciated
    Regards
    Bansi

  • ONETIME_WHERE property problem

    Hi ALL,
    Forms 10g 10.1.2.0.2 and Win-XP sp2
    I have a form , on it's When-new-form-instance trigger i wrote this code
    Set_Block_Property('jourhead',ORDER_BY,'VOCH_NO');
    Set_Block_Property('jourhead',DEFAULT_WHERE,'IDENT='||V_IDENT);
    Where :
    VOCH_NO is a varchar2 text item
    v_ident is a number variable
    I have a button in this form, i wrote this code for When-button-pressed trigger
    Set_Block_Property ('JOURHEAD',ONETIME_WHERE,'VOCH_NO='||''''||V_PREV_record||'''');
    EXECUTE_QUERY;
    This code works fine but sometimes the form freezes at the line (execute_query)
    Note, The form doesn't freeze if i wrote this line like this :
    Set_Block_Property ('JOURHEAD',ONETIME_WHERE,'VOCH_NO='||V_PREV_record);
    But this is not the case, it doesn't give the required result.
    What is wrong in this code ?
    Please help
    Thanks
    Message was edited by:
    Mostafa Abolaynain

    Hi Ade,
    Before set item property the value is displayed right , and sometimes the form freezes before displaying the message (this may be for the same record).
    Ade i noticed a very strange behaviour :
    the following syntax freezes the form :
    Set_Block_Property('JOURHEAD',DEFAULT_WHERE,' IDENT= '||FV.V_IDENT);
    Set_Block_Property('JOURHEAD',ONETIME_WHERE,'VOCH_NO='||''''||V_PREV_record||'''');
    However the following syntax doesn't freeze the form :
    Set_Block_Property('JOURHEAD',ONETIME_WHERE,'VOCH_NO'||'='||''''||V_PREV_record||''''||' AND IDENT='||FV.V_IDENT);
    Aren't the two syntax the same ??
    I confused .

Maybe you are looking for

  • InfraRed Receiver LED

    Dear sirs, when I've got a new MacBook and once again at home I have seen that my IR window was flashing with white light. Now it is not flashing. Remote control working correctly. When IR Receiver window should to flash with light?

  • My iPhone 5c will no longer connect to iTunes?

    Hello there! I bought my new iPhone 5c about 2 months ago and have had no problems until now. I used to be able to connect my iPhone to my Windows 8 laptop, but now when I hook it up, my iTunes doesn't even see my phone. There's not even a notificati

  • Time Machine - Calculating Changes

    Many have suffered from Time Machine getting stuck at 99% after a Time Capsule added to system. I was tortured by the same problem and finally fixed it by reasoning things out. Remember, Time Machine looks to back up everything. When you add a Time C

  • Exported iMovie audio out of sync by 1-2 secs?

    Hello, I actually have two questions that are sort of related (both dealing with odd audio glitches in the final exported iMovie): I just completed piecing together about 30 clips into a 55-minute movie. While I was watching the movie last night with

  • How can I stop iTunes from launching when I disconnect my Bluetooth device?

    This has only become a problem recently. Whenever I disconnect -- not connect, disconnect -- my Bluetooth Bose SoundLink Mini speaker from my MacBook Pro iTunes will auto-launch. I am current with Mavericks and iTunes updates. There must be a configu