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 9147425
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 17, 20262026-06-17T10:59:10+00:00 2026-06-17T10:59:10+00:00

In my iOS application I have a 5 view controllers that all deal with

  • 0

In my iOS application I have a 5 view controllers that all deal with the same feature (groups). These view controllers can be pushed on top of eachother in a few different configurations. I made a file called GroupViewHelper.h which uses @implementation to provide some functions for the groups feature. The functions look through the view controller stack and send a “refresh” message to a view controller of a specific type. The file looks like this:

@implementation UIViewController (GroupViewHelper)
- (void) refreshManageGroupsParent
{
   // ...
}

- (void) refreshGroupDetailsParent
{
   // ...
}
@end

My code works great and everything behaves as expected, but I get 14 warnings that are all very similar to this at build time:

ld: warning: instance method 'refreshGroupDetailsParent' in category from /Users/x/Library/Developer/Xcode/DerivedData/myapp-ayshzmsyeabbgqbbnbiixjhdmqgs/Build/Intermediates/myapp.build/Debug-iphonesimulator/myapp-dev.build/Objects-normal/i386/GroupMembersController.o conflicts with same method from another category

I think I’m getting this because I’m using a .H which is included in multiple places, but how do I correctly use @implementation in this situation?

  • 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-17T10:59:11+00:00Added an answer on June 17, 2026 at 10:59 am

    I think I’m getting this because I’m using a .H which is included in multiple places

    Well, sort of, but the real problem is that you’ve put the @implementation in the .h file in the first place. If you only included that .h file in one place, you would get away with it—but it would still not be the right way to do it.

    but how do I correctly use @implementation in this situation?

    Put it in a file called GroupViewHelper.m, and add that file to your project’s sources, and put the @interface in GroupViewHelper.h.

    Or, ideally, call them UIViewController+GroupViewHelper.m and UIViewController+GroupViewHelper.h, because that’s the idiomatic way to name category files. (And if you use Xcode’s “New File…” menu item to create a new Objective-C category file, that’s what it will give you.)

    In other words, interfaces and implementations for categories on existing classes work exactly the same as interfaces and implementations for new classes.

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

Sidebar

Related Questions

I'm developing an iOS 4 application. I have a main view that contains another
In an iOS 6 app I have some view controllers that are added as
In my iOS application I have made a form that should submit data into
I have an iOS application with several controllers, each with their own xib files.
I have a iOS single-view application for the iPad and using storyboards. I have
I have a UIViewController in my iOS application that displays a table that is
I have a catalogue application in iOS 5 that is downloading data from XML
I'm developing an iOS 4 application. I have this ViewController: @interface BlogViewController : UIViewController
i have ios application with xcdatamodeld, i want update some data so need a
I have ios application with datetimepicker, and i am store the date in to

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.