-1

I'm not sure what I am doing wrong here, I am following a tutorial online(thenewboston) and I am getting an error that says "w used as the name of the previous parameter rather than as part of the selector."

-(void)setWH: (int) w:(int) height;
guptha
  • 529
  • 1
  • 4
  • 9
user3011240
  • 87
  • 2
  • 8
  • Please provide complete code.. – Digital_Reality Jan 03 '14 at 04:14
  • possible duplicate of [Error after upgrading to xcode 4.6 and iOS 6.1 "used as the name of the previous parameter rather than as part of the selector"](http://stackoverflow.com/questions/14577478/error-after-upgrading-to-xcode-4-6-and-ios-6-1-used-as-the-name-of-the-previous) – jscs Jan 03 '14 at 04:22

1 Answers1

1

You're missing part of the selector name:

- (void)setWidth:(int)width height:(int)height;
//                          ^--- You're missing this.
godel9
  • 7,340
  • 1
  • 33
  • 53