views:

555

answers:

1

iphone project.

How can i call NStimer from NSThread?

I tried with no luck.

+3  A: 

Have you read the NSTimer documentation?

Have you set up a run loop?

Timers work in conjunction with run loops. To use a timer effectively, you should be aware of how run loops operate

See the Setting Up a Run Loop section of the Threading Programming Guide.

Peter N Lewis