|
|
| Welcome to the Mac Forums forums. Please read the FAQ if you have questions. Register to participate. |
|
|||||||
| TouchArcade.com - iPhone Game Reviews and News |
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
#1 |
|
macrumors newbie
Join Date: Nov 2009
|
Hello world help
Hi all, i am new. i have a button A and want to call function B that returns the message "hello".
Can you please help me, Thank you hello.h PHP Code:
PHP Code:
|
|
|
|
|
|
#2 |
|
Demi-God (Moderator)
Join Date: Jun 2000
|
You can name your method whatever you want. Maybe call it "helloText". Using that example, you would first need to declare it in your header file as such:
Code:
- (NSString *)helloText; Code:
- (NSString *)helloText
{
... blah blah ...
}
Code:
[self helloText]; Code:
[msg setString:[self helloText]]; |
|
|
|
|
|
#3 |
|
Thread Starter
macrumors newbie
Join Date: Nov 2009
|
Thank you for your help!
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|