mutualmobile / MMSpreadsheetView

MIT License
193 stars 34 forks source link

Property 'section' not found on Object type of 'NSIndexPath *' and also 'row' in NSIndexPath category. #20

Closed randikac32 closed 9 years ago

randikac32 commented 9 years ago

I's not allowed to build a test project after adding the MMSpreadsheetView showing the following two errors: screen shot 2015-04-05 at 8 04 22 pm So I tried adding the following line to import UITableView because I got to know that there is a category written in UITableView to integrate with NSIndexPath.

  #import <UIKit/UITableView.h>

And my problem was resolved. Please let me know what you think. Thanks!

jeffla commented 9 years ago

Those properties are part of the UIKit extension. See https://developer.apple.com/library/ios/documentation/UIKit/Reference/NSIndexPath_UIKitAdditions/

Sounds like there's a missing #import <UIKit/UIKit.h> somewhere.

randikac32 commented 9 years ago

Hi,

Yeah, that's true! I also saw that Apples doc which you have sent me and then wondered what's going on with my XCode don't let me to build it. Then I added that line,

import <UIKit/UITableView.h>

And that worked thankfully!

Thanks for you guys too for this much useful implementation!

Cheers!

On Sun, Apr 5, 2015 at 10:24 PM, Jeff Lacey notifications@github.com wrote:

Those properties are part of the UIKit extension. See https://developer.apple.com/library/ios/documentation/UIKit/Reference/NSIndexPath_UIKitAdditions/

Sounds like there's a missing #import <UIKit/UIKit.h> somewhere.

— Reply to this email directly or view it on GitHub https://github.com/mutualmobile/MMSpreadsheetView/issues/20#issuecomment-89810320 .