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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T00:54:51+00:00 2026-06-10T00:54:51+00:00

I have an class DMGStatController which has a delegate of type DMGSecondaryStatViewController. I write

  • 0

I have an class DMGStatController which has a delegate of type DMGSecondaryStatViewController. I write

DMGStatController *controller = [[DMGStatController alloc] init]; 
controller.delegate = self;

It is this second line of code that is giving me the error “Implicit Conversion from Objective-C Pointer to int * is Disallowed With ARC”. I don’t know what the compiler is talking about… DMGStatController’s property delegate is of type DMGSecondaryStatViewController, not int *. Any help would be much appreciated.

Also, here is where I declare the delegate.

#import <UIKit/UIKit.h>
#import "DMGSecondaryStatViewController.h"


@interface DMGStatDescriptionViewController : UIViewController{

}

@property(nonatomic , retain) DMGSecondaryStatViewController *delegate; 
@property(nonatomic , retain) NSString *finalStatChosen; 

@end
  • 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-10T00:54:52+00:00Added an answer on June 10, 2026 at 12:54 am

    Make sure to #import "DMGStatController.h", and that the header includes a @class DMGSecondaryStatController. You likely have a warning about the fact that it doesn’t know what DMGSecondaryStatController is and that it’s defaulting to int. Make sure that there are no warnings in your ObjC code. Most ObjC “warnings” are in fact errors.

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

Sidebar

Related Questions

I have class Window. This class has method onClick which gets argument the id
I have class like this below shown. which contains the shopping items where the
I have class B that has class A, this is simplified version of class
I have class A and B which inherit from Base. Base has a private
I have class which has a method that needs to return three DataTables. I
I have class Item and class List (which has an NSMutableArray). Every time class
I have class A that has some primitive attributes and also member of type
I have Class and Student objects. Both have collection of another as property. Which
I have class LegacyClass which inherits OldBaseClass. I'm considering a change to introduce a
We have class lua. In lua class there is a method registerFunc() which is

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.