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

  • SEARCH
  • Home
  • 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 8544935
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 11, 20262026-06-11T12:40:47+00:00 2026-06-11T12:40:47+00:00

I dragged an action to the ViewController.h area (which is my dayNight button), as

  • 0

I dragged an action to the ViewController.h area (which is my dayNight button), as shown:

//
//  ViewController.h
//

#import <UIKit/UIKit.h>

@interface ViewController : UIViewController

- (IBAction)dayNight:(id)sender;
- (IBAction)insulationClick:(id)sender;

Now I decide I want it to read:

- (IBAction)dayNightClick:(id)sender;

So I rename it manually as shown in above line. I also rename it in the ViewController.m file from:

- (IBAction)dayNight:(id)sender{}

to:

- (IBAction)dayNightClick:(id)sender{}

When I execute the code I get an error as soon as I use my button.

If I manually rename it (without the word Click) it works again.

Why can’t I manually modify the code line. Is there another location where I must rename the code too?

The error is:

Thread1: signal SIGABRT

and points to this line of code in the main.m file:

int main(int argc, char *argv[])
{
@autoreleasepool 
{
    return UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class]));
}
}

I’m sure this is a really basic question.

  • 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-06-11T12:40:49+00:00Added an answer on June 11, 2026 at 12:40 pm

    What I discovered is the following:

    • Go to the story board (ie the view where you can see your GUI representation of your idevice)
    • Click on the button you wish to rename (we are going to delete it)
    • Click the button called “Show the connections inspector” (located near top right hand corner of xcode, and looks like a right pointing arrow in a black circle).
    • There is a section called “Sent Events”, and your button event will have a bubble drawn around it with a link to a second bubble with the name of your IBAction.
    • Click on the tiny cross (x) in the second bubble to delete the event link.

    Now you can start again and rename the button to whatever you like. In my example I renamed it from:

    (IBAction)dayNight:(id)sender{} 
    

    to:

    (IBAction)dayNightClick:(id)sender{} 
    

    So this is renaming by deleting all references to the button and simply creating it again. Note the other two places to delete it from are:

    • In the *.h file, example I deleted this line:

      (IBAction)dayNight:(id)sender{}

    and in the *.m file, example I deleted this code:

    (IBAction)dayNight:(id)sender{} 
    {
        // code in here
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a button which i drags using the code: [myButton addTarget:self action:@selector(dragged:withEvent:) forControlEvents:UIControlEventTouchDragInside];
So I basically dragged a button from interface builder's library, turned it into a
I have written a code to move a button as it is dragged. I
Take a look at this method: [textButton addTarget:self action:@selector(articleModalWillAppear:) forControlEvents:UIControlEventTouchDown]; When the button is
I'm trying to decipher CHtmlView's behaviour when files are dragged into the client area,
I have a button that can be dragged around on the screen. I was
In my app I dragged a View from the library of the interface builder
I dragged out a TVC from storyboard and put a table view as a
I dragged an image named star.jpeg (57 x 57 pixels) into Supporting Files and
I have dragged a empty asp.net table onto my webform. I generate all the

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.