title: Sending 'CGFloat' (aka 'float') to parameter incompatible type 'CGSize' (aka 'struct CGSize')
body: <p>I'm using the latest version of xcode 5.</p>
  
  <p>I get this error twice in the following code:</p>
  
  <pre><code> + (SemiSecretFont *)fontWithName:(NSString *)name
              size:(CGFloat) size;
   {
   //dynamically search for a class with this name
   Class klass = NSClassFromString([NSString stringWithFormat:@"%@Font", name]);
   //NSLog(@"looking for font: %@", name);
   //  NSLog(@"klass: %@", klass);
   SemiSecretFont * font = nil;
   if (klass)
  font = [[[klass alloc] initWithSize:size] autorelease]; //error occurs here
   return font;
  }
  
   - (id) fontWithSize:(CGFloat)s
   {
     Class klass = [self class];
     SemiSecretFont * f = nil;
     f = [[[klass alloc] initWithSize:s] autorelease]; //error occurs here again
     return f;
   }
  </code></pre>
  
  <p>The error: Sending 'CGFloat' (aka 'float') to parameter incompatible type 'CGSize' (aka 'struct CGSize')</p>
  
  <p>I also get a warning: Multiple methods named 'initWithSize:' found</p>
  
  <p>Update:</p>
  
  <p>Here's my initWithSize declaration code...</p>
  
  <pre><code> //this is not meant to be instantiated directly!
   - (id) initWithSize:(CGFloat)fontsize
   {
     if ((self = [super init])) {
     size = fontsize;
     font = nil;
   }
   return self;
   }
  </code></pre>