Here is my code:
secondClass.h
@property (nonatomic) int number;
secondClass.m
@synthesize number;
  //positioning object in x position of first class
  object.center = CGPointMake(number, object.center.y);
  NSLog(@"%d",number);
first class.m
#import "secondClass.h"
secondClass *second = [secondClass alloc];
second.number = 15;
I used NSLog to see what is happening. In the first class, the value of the second number is 15. When I used NSLog to see it's value in the second class, it comes up as 0.
What am I doing wrong?
 
     
     
     
     
    