Enuratique
Jun 24, 2008, 02:12 PM
Yet another problem guys. I'm so close to finishing but I'm getting a build error when I try to override the cellForRowAtIndexPath delegate method. I'm just doing what is done in UIShowcase AS WELL AS The TableViewSuite examples.
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyIdentifier"];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reusableIdentifer:@"MyIdentifier"] autorelease];
// set text of cell
}
The build error I get is related to the CGRectZero:
Building target “WordsterAssistant” of project “WordsterAssistant” with configuration “Debug” — (1 error)
Undefined symbols:
"_CGRectZero", referenced from:
_CGRectZero$non_lazy_ptr in WordsterAssistantDataSource.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
"_CGRectZero", referenced from:
_CGRectZero$non_lazy_ptr in WordsterAssistantDataSource.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build failed (1 error)
I double checked to make sure I was including all the Framework header files that the example sources included but I'm stumped. Any ideas?
This object's interface is defined as
@interface WordsterAssistantDataSource : NSObject <UITableViewDataSource>
Do I also need to have this object implement the UITableViewDelegate protocol as well? I don't need any of its functionality.
UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:@"MyIdentifier"];
if (cell == nil) {
cell = [[[UITableViewCell alloc] initWithFrame:CGRectZero reusableIdentifer:@"MyIdentifier"] autorelease];
// set text of cell
}
The build error I get is related to the CGRectZero:
Building target “WordsterAssistant” of project “WordsterAssistant” with configuration “Debug” — (1 error)
Undefined symbols:
"_CGRectZero", referenced from:
_CGRectZero$non_lazy_ptr in WordsterAssistantDataSource.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
"_CGRectZero", referenced from:
_CGRectZero$non_lazy_ptr in WordsterAssistantDataSource.o
ld: symbol(s) not found
collect2: ld returned 1 exit status
Build failed (1 error)
I double checked to make sure I was including all the Framework header files that the example sources included but I'm stumped. Any ideas?
This object's interface is defined as
@interface WordsterAssistantDataSource : NSObject <UITableViewDataSource>
Do I also need to have this object implement the UITableViewDelegate protocol as well? I don't need any of its functionality.
