开发者

How to get feedback from an action in Xcode

I'm new to using Xcode to program apps for the iPad. As expected, some of my first attempts a开发者_如何学Pythont activating actions from a button don't work. What I'd like to do (as I do in scripting programs) is get some feedback from the action i.e., a feedback message to tell me the action received the activation message. Similarly, I'd like the action to give me feedback on the values of the variables and properties it is using.

How can I arrange this in the coding? Grateful for any help here :)

Peter Small


In the button click event code you can write NSLog(@"Button was pressed"); That would give message in the console,through which you can get idea that your method was called.Hope this helps you.


Log the properties using NSLog(@"Button pressed:%@", userOutput.text);

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜