Apr 28, 2015 11:39
I will keep looking using your suggestions.. Thanks a bunch.. Take care friend
Apr 28, 2015 11:38
iOs 8
Apr 28, 2015 11:36
real device, iPhone 4s
Apr 28, 2015 11:35
I suspect it is a problem of auto layout, not the way UiTableView manages it's views. Because when I remove the bottom constraints, they appear !
Apr 28, 2015 11:33
but one question, what exactly did you do with the following code?
Apr 28, 2015 11:33
Okay, well thanks for your time and effort. I will keep looking
Apr 28, 2015 11:32
Where do you suspect the problem is? rendering? creating cell objects?
Apr 28, 2015 11:31
Now cells don't appear initially, but appear after scroll.. still some overlapping
Apr 28, 2015 11:27
Errors:
1-) property registernib not found on object type UITableView
2-) use of undeclared identifier nibname, did you mean _nibname
Apr 28, 2015 11:24
What is the first point you made?
Apr 28, 2015 11:11
Are you able to re-create the same problem?
Apr 28, 2015 11:04
where text is the UILabel
Apr 28, 2015 11:03
-(UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath{
NSString *CellIdentifier = [NSString stringWithFormat:@"id2"];
CommentTableViewCell * cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
if(!cell){
[tableView registerNib:[UINib nibWithNibName:@"CommentCell" bundle:nil] forCellReuseIdentifier:CellIdentifier];
cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier];
CommentObject *comment = [_data objectAtIndex:indexPath.row];
Apr 28, 2015 11:02
I am initializing the custom cell I have
Apr 28, 2015 11:00
In case I will be adding metadata like a time stamp
Apr 28, 2015 11:00
yes
Apr 28, 2015 10:56
Some cells are overlapping
Apr 28, 2015 10:56
After scroll, some cells show up nicely. I have put the borders to check what is happening
Apr 28, 2015 10:55
It is really weird because the layout is dead simple. Just a UILabel that needs to stretch based on content
Apr 28, 2015 10:54
I am not using story boards
Apr 28, 2015 10:54
Hi andre, thanks for your interest
Apr 28, 2015 10:54
@AndreSlotta check out the edit, thanks
Apr 28, 2015 10:54
@AndreSlotta It's a big project, what exactly do you think you need to see?
Apr 28, 2015 10:54
@AndreSlotta No, I do not know how to calculate the height from UILabel. But why is it that when i add the bottom constraint, the other cells shrink?
Apr 28, 2015 10:54
@AndreSlotta I am doing that. Ashok , Which part exactly should I be looking at?
 
Oct 1, 2014 12:19
Now just the first element doesn't load
Oct 1, 2014 11:22
I am afraid I can't try a regular cell since I have many elements that are included in the view. I will try to add the selection style line
Oct 1, 2014 11:14
It is weird. I scroll down and up. Sometimes it appears, other times not. I can't see a pattern
Oct 1, 2014 11:13
Do you think it is a nib issue ?
Oct 1, 2014 11:13
exactly what I was thinking
Oct 1, 2014 11:11
Okay will do now
Oct 1, 2014 11:11
It was not resolved. Same behaviour
Oct 1, 2014 11:10
Thanks for your interest and time
Oct 1, 2014 11:10
Hi ramesh
Oct 1, 2014 11:08
I just did. It gave me the same behavior. I am thinking it is an issue of rendering (IB) in setting up the nib file for the cell
Oct 1, 2014 11:08
I am sure it will make a big difference for large lists. My list will be way smaller than 1000.
Oct 1, 2014 11:08
why not? I have a short list. and it does a good job for keeping order when scrolling.
 

[iOS][Android][ChaosOverFlow]

Join to become part of the community, not to simply ask questi...
May 31, 2014 18:58
Hey guys I started a bounty if anyone is interested
May 31, 2014 17:07
@shubhank can we talk somewhere else please
May 31, 2014 17:06
@Shubhank hey, I have a viewpager with 3 tabs, each tab has a fragment. By default, fragment objects are stored in memory, I would like to reload/re-instantiate each fragment when it is selected
May 31, 2014 17:04
Hey guys, I am STUCK with a problem involving fragments, and I really need and appreciate help
May 28, 2014 17:53
@shubhank do they get re-instantiated by default!?
May 28, 2014 17:53
Okay thanks I will
May 28, 2014 17:51
@Shubhank can we chat somewhere better, this is really difficult to manage
May 28, 2014 17:50
@Shubhank I do, and I am trying to do the destruction and construction of the fragments in the onTabSelected, still no luck
May 28, 2014 17:48
@Shubhank what do you think mate?
May 28, 2014 17:47
I spent 4 days now with no luck :(
May 28, 2014 17:47
I need to re-instantiate each fragment every time it is selected
May 28, 2014 17:47
@shubhank I have 3 fragments with tabs that get data from server. Normally when you swipe between tabs, the fragments don't get updated as they are cached in memory
 

 Android Era with Kotlin and Java

Important: Read dos and don'ts here: androidera.github.io . Ma...
May 30, 2014 22:14
Guys, I REALLY REALLY need help with an android problem, I spent a week trying to fix it :(