-2

iphone project.

How can i call NStimer from NSThread?

I tried with no luck.

Shay
  • 2,595
  • 3
  • 25
  • 35

1 Answers1

4

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
  • 17,664
  • 2
  • 43
  • 56