[iPhone 2.x] How to set text of a label from another classfile?

I've a iPhone application (tabbar application) with some UIViewControllers. Per UIViewController i've created another .xib file.
In one of the .xib files, i've created an UIView with an UILabel and created an outlet called "lblStatus" and connected it to the UILabel. I did all with Interface Builder.
When i execute the application everything works great.
Now i want to change the text of UILabel (lblStatus) from another class other then the class i've defined the outlet.
MainWindow.xib
- UITabBarController
- UITabBar
- UIViewController (viewController)
- UIViewController (redirect to photosView.xib)
photosView.xib
- UIView (photosView)
- UILabel (lblStatus)
As you can see i've the classfile viewController (.h/.m). In that file i've the method called "viewDidLoad". I'm trying to set the text of lblStatus (defined in the classfile photosView (.h/.h) from this method.
I've tried a lot but nothing works till now, how can i fix this?
Thanks

I believe the best way would be to setup a weak reference to the object.
Check out "Object Ownership and Disposal" in "Memory Management Programming Guide for Cocoa":
http://developer.apple.com/documentation/Cocoa/Conceptual/MemoryMgmt/MemoryMgmt. pdf

Similar Messages

  • How to set text size when printi from a web page

    can't increase text size when printing a web page

    If you're using IE, click on View, Text Size and then whatever size you'd like.  You'll see the changes on the screen and it should print out the same way.
    Hope that helps.
    Say Thanks by clicking the Kudos thumbs up. Please mark the post that solves your problem as an Accepted Solution so other forum users can utilize the solution.
    I am an HP employee.

  • How to set text and background color of current row in a adf table?

    Hi,
    In jdev 11.1.2.3,
    How to set text fond and background color of current row in a adf table?
    I tried to set Background color in table property, but that is not what i want.
    Thanks.

    Hi,
    We almost had the same requirement, but we just needed to color a specific column.
    Here goes the solution to that, you might do the same for your row highlighting
    Changes are required in jsff and one method to be added in backing bean
    1. JSFF :
    <af:column headerText="Amount"
                     id="c4" width="100"
                     inlineStyle="#{backingBeanScope.BackingBean.cellColor}">2. Backing Bean
    //searchResultTableVO is Table's VO
    public String getCellColor() {
          FacesContext ctx = FacesContext.getCurrentInstance();
          ExpressionFactory ef = ctx.getApplication().getExpressionFactory();
          ValueExpression ve = ef.createValueExpression(ctx.getELContext(), "#{row}", FacesCtrlHierNodeBinding.class);
          FacesCtrlHierNodeBinding node = (FacesCtrlHierNodeBinding)ve.getValue(ctx.getELContext());
          Row row = node.getRow();
        if(row.equals(searchResultTableVO.getCurrentRow())){
    //You can add your inline style for font-style too
          return "background-color:Red;";
             return null;
      }Hope this is helpful :)
    Regards,
    Neha..

  • How do I remove my phone number from another iCloud account so that text messages cannot be seen on another phone?

    How do I remove my phone number from another iCloud account. The issue is another phone receiving my text messages because of a shared apple ID.

    You can't remove your phone number from iMessage on an iPhone.  To prevent another phone from receiving your messages, use different Apple IDs for iMessage.  One of you should go to Settings>Messages>Send & Receive, tap the ID, sign out, then sign back in with a different ID.  You can still share the same ID for other services such as iTunes if you want; they don't have to be the same as your iMessage ID.

  • I had an iPhone 4 with all my music on it. Got rid of my desktop when I got an iPad. Now I have iPhone 4S. How do I get my music transferred from old phone to 4s and iPad without a desktop with iTunes on it?

    I had an iPhone 4 with all my music on it. Got rid of my desktop when I got an iPad. Now I have iPhone 4S. How do I get my music transferred from old phone to 4s and iPad without a desktop with iTunes on it?

    Restore the device from the backup created.
    If no backup exists, there is nothing to recover.

  • How to translate text elements in forms from type : pdf

    does anybody know how to translate text elements
    in  pdf  from english to other languages.
    i tried the tran. se63 and filled in the desired language,
    but there was no effect on the output ,
    thanks,
    ami

    call this funcation. crate_text.
    CALL FUNCTION 'CREATE_TEXT'
             EXPORTING
               FID               =
               FLANGUAGE         =
               FNAME             =
               FOBJECT           =
             SAVE_DIRECT       = 'X'
             FFORMAT           = '*'
             TABLES
               FLINES            =
           EXCEPTIONS
             NO_INIT           = 1
             NO_SAVE           = 2
             OTHERS            = 3
           IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
           ENDIF.

  • Ok I can't seem to get my apps,music, or photos from my iCloud from when I first setup iCloud on a iPhone 4. How do I get my things back from the iCloud and get them to my new device?

    Ok I can't seem to get my apps,music, or photos from my iCloud from when I first setup iCloud on a iPhone 4. How do I get my things back from the iCloud and get them to my new device?

    If you no longer have the phone or have any Backup of it at all, you can re-download your apps and your content from the iTunes Store by logging into your Apple ID at settings> iTunes & App Store. Unfortunately you can no longer recover the data that was associated with those apps.
    So far as your photos go, you can recover any photos that were in photo stream and taken less than 30 days ago by logging in with your Apple ID to settings> iCloud> photos. Unfortunately you will be unable to recover any photos from your camera roll.

  • I have a iphone 5. How do I search for a event from 2013 under search? I do have "all events" selected

    I have a iphone 5. How do I search for a event from 2013 under search? I do have "all events" selected

    I would check, but I believe I have read that the calendar only lets you search back in the current year. You might find additional information about that in the User Guide. http://manuals.info.apple.com/MANUALS/1000/MA1565/en_US/iphone_user_guide.pdf
    What happens if you go back to a month in 2013, do you see a date with any events in it? I'm not saying the calendar is deleting data, just that you cannot search earlier than the current year.

  • How do i transfer photos and contacts from another phone to iPhone

    Ive ordered the new 4s and currently have the Galaxy II.  how do i transfer photos and contacts from another phone to iPhone?

    You will have to do it via either a computer or online storage such as Dropbox. You cannot transfer data directly from phone to iPhone.

  • How to set title of jsp page from resource bundle

    hi ,
    How to set title of jsp page from resource bundle....

    Depends on how you configured and declared the resourcebundle in your JSP. The usual way is just<title>${resourceBundle.messageKey}</title>

  • Getting the text of a Label from an inputField

    Hello everyone,
    In my application, I have an inputField and a Label.
    The labelFor property of the Label directs to the inputField.
    How can I get the text of the label from the inputField ?
    Any suggestions ?
    Thanks.
    Ruthie.

    Hi Anilkumar,rahul,Valery.
    I didn't explain it clear enough.
    In my application I use the method reportContextAttributeMessage as follows:
    private void checkMandatory(String fieldName, String fieldText){
    IWDMessageManager messageMgr = wdControllerAPI.getComponent().getMessageManager();
    IWDAttributeInfo attributeInfo = wdContext.getNodeInfo().getAttribute(fieldName);
    String value = wdContext.currentContextElement().getAttributeAsText(fieldName);
    if (value.length()==0){          
                   messageMgr.reportContextAttributeMessage(wdContext.currentContextElement(),
                   attributeInfo,                        IMessageOpenUserApp.MISSING_INPUT,
                   new Object[] { fieldText },
                   true);     
    So,this method executes validity check to an input field
    ("fieldName").
    In the layout I have an inputField and a Label.
    The property labelFor of the Label is set to the inputField.
    The parameter "fieldText" should be the text of the label.
    Is there a way - that when knowing only the context attribute of the inputField - I can get the text of the Label ? what is the meaning of the labelFor property ?
    Thanks.
    Ruthie.

  • My ipod touch has a huge collection of music that I don't want to lose or replace but my computer has now crashed beyond recovery. How can I access my itunes account from another computer or transfer my playlists to another computer from my ipod?

    My ipod touch has a huge collection of music that I don't want to lose or replace but my computer has now crashed beyond recovery. How can I access my itunes account from another computer or transfer my playlists to another computer from my ipod?

    You can transfer iTunes purchases to your "new" computer by
    iTunes Store: Transferring purchases from your iPhone, iPad, or iPod to a computer
    You can transfer other stuff by:
    Best iPod to PC
    How to transfer or sync files from iPod to PC - Windows mac iPhone iPod software reviews - Software Wiki

  • How can i install ios 8 downloaded from another source through flash drive?

    how can i install ios 8 downloaded from another source through flash drive?

    You can not download from a flash drive.  You can do over the air, or you can connect your iPhone to your computer and download iOS 8.1 via iTunes.

  • How do I unlink my Apple ID from another persons I tunes account? I keep getting their security questions and one of my emails can't be used

    How do I unlink my Apple ID from another persons I tunes account? I keep getting their security questions and one of my emails can't be used. It keeps telling me I its linked to another account but it shouldn't anymore. Plus my security questions belong to the other person and it has no reset option

    depend on the version of itunes and if it's OS X or windows i suppose
    in itunes on ny computer in the upper right corner left of the search bar there is a circle with a black siloet  and my name beside it
    if I click on the v beside it I can a menu with logout as an option

  • How can I make an audiobook purchased from another source show up in iTunes as an audiobook and not as music?

    How can I make an audiobook purchased from another source show up in iTunes as an audiobook and not as music?
    They chapters are mp3 files. Changing the genre to "audiobook" or "audiobooks" does help.
    I am sure this question will come up a lot, since the book in question is "Harry Potter and the Deathly Hallows," purchased from Pottermore.com.

    The one thing I would add to the instructions above is that the "Media Kind" menu is on the "Option" pane in the "Get Info" Window. This procedure has allowed me not only to make imported audiobooks show up as audiobooks, but imported podcasts show up as podcasts.

Maybe you are looking for

  • Interactive report: Can I exclude a particular column from single row view?

    Hi -- I posted on this yesterday (Possible to exclude interactive report column from single row display? a bit anxious for suggestions, I guess! I've added a column with edit-link functionality to my interactive report query (that is, the link is not

  • How to import  my own class in jsp file

    I have a jsp file in jsp\ directory and a class in web-inf\classes\ directory. How do I import the class in jsp so i can use it in my jsp file. Thanks,

  • File to File scenario using NFS.

    Hi All, I am learning XI and got stick in a relatively simple issue. I am creating a scenario wherein a file from a directory on local machine say (D:/xi_input) is transferred to a directory on local machine only (say D:/xi_output). I guess this scen

  • Changing themes of application in Flex 3

    Hi All ,below is my  mxml file , in which i am trying to change theme of my flex application by selecting the themes in combo box, but it is not working fine.Is there any bug in code ??? How to change the theme of flex application in Flex 3.. Plzz he

  • Pricing Condition type in a Sales area

    Hello All, Please let me know how can I find the condition types used for pricing by the customers in a particular sales area? I know the link is in some config table like T683 T683s T683v but please tell me the exact table link.. Thanks a lot! Rewar