Note that there are some explanatory texts on larger screens.

plurals
  1. POUIToolBar background transparent
    primarykey
    data
    text
    <p>I am trying to place <code>UIToolBar</code> in <code>UINavigationBar</code>.</p> <pre><code> UIToolbar* tempFontSizeToolBar = [[UIToolbar alloc] initWithFrame:CGRectMake(kPaginationToolBarOriginX,kPaginationToolBarOriginY,kPaginationToolBarWidth,kPaginationToolBarHeight)]; tempFontSizeToolBar.backgroundColor = [UIColor clearColor]; // create the array to hold the buttons, which then gets added to the toolbar NSMutableArray* buttons = [[NSMutableArray alloc] init]; [tempFontSizeToolBar setTranslucent:YES]; UIBarButtonItem *fontSizeBarButtonItem; fontSizeBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:KpreviousPageIcon] style:UIBarButtonItemStylePlain target:self action:@selector(movePreviousPage:)]; [buttons addObject:fontSizeBarButtonItem]; [fontSizeBarButtonItem release];fontSizeBarButtonItem = nil; fontSizeBarButtonItem = [[UIBarButtonItem alloc] initWithImage:[UIImage imageNamed:KnextpageIcon] style:UIBarButtonItemStylePlain target:self action:@selector(moveNextPage:)]; [buttons addObject:fontSizeBarButtonItem]; [fontSizeBarButtonItem release];fontSizeBarButtonItem = nil; // stick the buttons in the toolbar [tempFontSizeToolBar setItems:buttons animated:NO]; [buttons release];buttons = nil; UIBarButtonItem *rightBarItem = [[UIBarButtonItem alloc] initWithCustomView:tempFontSizeToolBar]; self.navigationItem.rightBarButtonItem = rightBarItem; </code></pre> <p>The background color of that <code>UIToolBar</code> is the default Blue. But I need the Toolbar should be in clear color so that the NavigationBar's background image should appear in that Toolbar also.</p> <p>Pls suggest me.</p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload