Ribs
Ribs

Reputation: 1505

warning - Instance method '-initWithframe:' not found (return type defaults to 'id')

Can anyone tell me why the following generates the warning "Instance method '-initWithframe:' not found (return type defaults to 'id')"

mainToolbar = [[UIToolbar alloc] initWithframe:CGRectMake (0,19, 320, 44)];

mainTollbar is properly declared in the header file with @property, and synthesized in the .m file

further down another warning is generated from mainToolBar: "instance method '-addSubview:' not found (return type defaults to 'id')"

Upvotes: 0

Views: 1403

Answers (1)

Macmade
Macmade

Reputation: 53960

initWithFrame, with a capital F.

Upvotes: 4

Related Questions