Quantcast
Channel: Why tableview cell background view working well after navigation back? - Stack Overflow
Viewing all articles
Browse latest Browse all 3

Why tableview cell background view working well after navigation back?

$
0
0

At this moment i am working on iPhone 5.0 simulator.In my tableview i have taken a uiview for each cell background color and this view has a background image.

Now, My problem is when my table containing controller load then in the- (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath

i have wrote this for table cell background.

cellView = [[[UIView alloc] initWithFrame:CGRectMake(0,8,250, 51)] autorelease];cellView.backgroundColor = [UIColor colorWithPatternImage:[UIImage imageNamed:@"order_text_area.png"]];cellView.tag =10;[cellView.layer setOpaque:NO];cellView.opaque = NO;[cell.contentView addSubview:cellView];

For keeping cell background transparent i have used this code and it works,But

[cellView.layer setOpaque:NO];cellView.opaque = NO;

when i select a cell then it goes it's corresponding controller.Now my problem is when i return back to my tableview controller then cell background do not keep in transparent view means cell view do not work on those code.So anybody help me. I am in serious problem.

NOTE THAT *I wanted to give a screen shot but unexpectedly in simulator i do not face this problem.*

Thanks In Advance.


Viewing all articles
Browse latest Browse all 3

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>