Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3214884
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T15:06:47+00:00 2026-05-17T15:06:47+00:00

I want to call the method after particular time only one time therefore i

  • 0

I want to call the method after particular time only one time therefore i was written an statement as following.

    imageAnimationTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector([self imageViewAnimation:imageViewObject]) userInfo:nil repeats:NO];

Above won’t be worked. Why?
It give me some strange problem.
How i calling and sending arguments along-with it using NSTimer:scheduledTimerWithTimeInterval:target:selector:userinfo:repeats:

#0  0x02911732 in __kill ()
#1  0x02911724 in kill$UNIX2003 ()
#2  0x029a498d in raise ()
#3  0x029baa44 in abort ()
#4  0x0330bfda in __gnu_cxx::__verbose_terminate_handler ()
#5  0x02ccd61c in _objc_terminate ()
#6  0x0330a17a in __cxxabiv1::__terminate ()
#7  0x0330a1ba in std::terminate ()
#8  0x0330a2b8 in __cxa_throw ()
#9  0x02ccd3d8 in objc_exception_throw ()
#10 0x02bb4a5b in -[NSObject doesNotRecognizeSelector:] ()
#11 0x02b31676 in ___forwarding___ ()
#12 0x02b30a32 in __forwarding_prep_1___ ()
#13 0x000055af in -[StageOneForSuspectOne imageViewAnimation:] (self=0x6182a70, _cmd=0x6fda, imageView=0x618c570) at /Users/ajm/Desktop/ProgramOne/Classes/StageOne.m:218
#14 0x0004cffd in __NSFireTimer ()
#15 0x02b027dc in CFRunLoopRunSpecific ()
#16 0x02b018a8 in CFRunLoopRunInMode ()
#17 0x0352289d in GSEventRunModal ()
#18 0x03522962 in GSEventRun ()
#19 0x002d1372 in UIApplicationMain ()
#20 0x000028ec in main (argc=1, argv=0xbffff074) at /Users/ajm/Desktop/DetectiveJone/main.m:14
(gdb) 
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T15:06:47+00:00Added an answer on May 17, 2026 at 3:06 pm

    Your selector is defined incorrectly.

    imageAnimationTimer = [NSTimer scheduledTimerWithTimeInterval:1.0 target:self selector:@selector(imageViewAnimation:) userInfo:imageViewObject repeats:NO];
    

    I would suggest simply using performSelector:withObject:afterDelay:

    [self performSelector:@selector(imageViewAnimation:) withObject:imageViewObject afterDelay:1.0];
    

    Check out the NSTimer and NSObject references for more details.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I want to call the getData method after waiting 2 seconds each time this
I have a method what I want to call after -viewDidLoad and in background
I have a requirement: I want to call method every day at any particular
I want to be able to call a particular method automatically upon construction of
In my android application I want to call particular method at regular interval of
I want to schedule a method call in Spring MVC to run after every
in a method, i want to call a method after n seconds: self.toolBarState =
I want to call an action method (DownloadPictures) after i redirect to a different
I want to call a method after creating the bean using spring, for example
I want to call a method say success(message) of javascript from android activity. I

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.