Wednesday, 15 August 2012

iphone - White Line across UIToolbar when table view present -


I have a programmaticly created UIToolbar in some views. I think there is a table present, between the toolbar There is a white line, which appears to be the boundary of the table cell. Is there any way to get rid of this line?

Here is a screen shot:

I'm using to create the tool bar shown here:

  - (zero) create toolbar item {UIBarButtonItemStyle Style = UIBarButtonItemStylePlain; UIImage * addWishImg = [UIImage image named: @ "BTN-adwish-off page"]; UIButton * addBtn = [UIButtonTypeCustom] with UIButton Button; [AddBtn setImage: addWishImg forState: UIControlStateNormal]; AddBtn.frame = CGRectMake (0, 0, addWishImg.size.width, addWishImg.size.height); UIBarButtonItem * addButton = [[UIBarButtonItem alloc] initWithCustomView: addBtn]; [AddButton setTarget: self]; [AddButton Set Action: @Selector (Adverse)]; AddButton.style = style; UIBarButtonItem * flexItem = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemFlexibleSpace Target: Zero Action: Zero]; FlexItem.style = style; UIImage * emailImg = [UIImage imageNamed: @ "btn-mail-off.png"]; UIButton * emailBtn = [UIButtonTypeCustom] with UIButton Button; [E-mail btn set image: e-mail image for state: uicotolstadt normal]; EmailBtn.frame = CGRectMake (0, 0, emailImg.size.width, emailImg.size.height); UIBarButtonItem * Email Button = [[UIBarButtonItem Alloc] initWithCustomView: emailBtn]; [Email button set target: self]; [Email button set action: @silver (adverz)]; EmailButton.style = style; NSArray * items = [NSArray arrayWithObjects: addButton, flexItem, emailButton, zero]; [Self. Toolbar set item: animated items: no]; [Adbutton release]; [Flex etam release]; [Email button release];  

}

  - (zero) viewDidoadload {[Super Viewedload]; ... // Create UIToolbar below the Visual Controller toolbar [[UITULBER NEW]; Toolbar BarStyle = UIBarStyleBlackOpaque; // Size up the toolbar and set its frame [toolbar sizeToFit]; CGFloat ToolbarHit = [Toolbar Frame]. Shape. height; NSLog (@ "% F", Toolbarheit); CGRact Main ViewBound = self.view.bounds; [Toolbar setframe: cgtxtxx (main vivoound), cgr acetgatminwy (main vibbons) + cgreactgetheat (main vibbons) - (toolhearheit * 2.0) +2.0, cgractgetwidth (main vibbounds), toolbart)]; [Self.view addSubview: toolbar]; [Self-tutorialbar item];  

}

Do you check that your tableview overlaps Is the toolbar or not? Otherwise, you can not see any obvious issues. To see if this is the case, set a background color in your table viewer. Or just to minimize the height of the mews, to see if this problem solves


No comments:

Post a Comment