iOS UITextView debug question

Posted on 2012-09-09
Last Modified: 2012-09-17
I have a UITextView called textField.

I successfully set the textField.text property with a button and I can successfully read the value of textField.text and pass it to a function.

My question is how the heck to I display the value of textField.text in the debug window?

I have tried the following and neither works -
po textField.text
po [textField text]

Thanks,  Kevin.
Question by:kevinvw1
    1 Comment
    LVL 14

    Accepted Solution

    Please notice that you cant print out values of an objects property in gdb. E.g. you cant use po textView.text; instead you should use the second syntax: po [textView text]
    Secondly you probably have set a breakpoint somewhere in your code and then you tried po [textView text] in gdb; if it's not working thats because textView is not declared in the scope the time you were executing gdb command.
    Put a beakpoint on one line after where you have set textView.text in your code and try the gdb command again.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    IT, Stop Being Called Into Every Meeting

    Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

    Suggested Solutions

    Are you having trouble connecting or getting your iPhone / Samsung device(s) to sync with Microsoft Exchange Server?   What have you tried?   What haven't you tried?
    Set up iPhone and iPad email signatures to always send in high-quality HTML with this step-by step guide.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    This video gives you a great overview about bandwidth monitoring with SNMP and WMI with our network monitoring solution PRTG Network Monitor ( If you're looking for how to monitor bandwidth using netflow or packet s…

    779 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now