0

I am coming from swift background, I have a code in objective -c that take value from server and it takes correctly here is the code bellow.

if (![message_expiration intValue]){
    NSLog(@"Check the message expiration integer value");


    _MessageExpire = [message_expiration intValue];




}

and I have a variable:

@property (nonatomic, assign) NSInteger *MessageExpire;

what I want is: My variable that is integer takes the value that come from server and I did in this way :

_MessageExpire = [message_expiration intValue];

but I get the error that say: incompatible integer to pointer conversion assigning .....

Any help appreciate

Steven
  • 762
  • 1
  • 10
  • 27

1 Answers1

0

Objective - C

Did not assign pointer(*) to NSInteger

@property (nonatomic, assign) NSInteger MessageExpire;
Community
  • 1
  • 1
Hitesh
  • 896
  • 1
  • 9
  • 22