Hello everybody,
I'm a new iPhone developer, just learning, I have following problem:
I'm trying to create a class, with table member (UITableView m_table). I created empty IB file with table cell, called it Aaa.xib.
I implemented <UITableViewDelegate, UITableViewDataSource> protocols and in function -
(UITableViewCell *)tableViewUITableView *)tableView cellForRowAtIndexPathNSIndexPath *)indexPath {
if (cell == nil)
{
[[NSBundle mainBundle] loadNibNamed"Aaa"
owner:self.m_table options:nil];
cell = aaa;
self.aaa = nil;
}
aaa is a member of type UITableViewCell
The question: for some reason cell and aaa have value 0. What did I miss?
And how the bundle "knows" to initialize aaa member?
Thanks a lot
I'm a new iPhone developer, just learning, I have following problem:
I'm trying to create a class, with table member (UITableView m_table). I created empty IB file with table cell, called it Aaa.xib.
I implemented <UITableViewDelegate, UITableViewDataSource> protocols and in function -
(UITableViewCell *)tableViewUITableView *)tableView cellForRowAtIndexPathNSIndexPath *)indexPath {
if (cell == nil)
{
[[NSBundle mainBundle] loadNibNamed"Aaa"
owner:self.m_table options:nil];
cell = aaa;
self.aaa = nil;
}
aaa is a member of type UITableViewCell
The question: for some reason cell and aaa have value 0. What did I miss?
And how the bundle "knows" to initialize aaa member?
Thanks a lot