So, it seems that there is no way to directly add any element of the panel button to the UIView . We will need a subclass of UIToolbar to make the toolbar completely invisible. Override - (void)drawRect:(CGRect)rect and don't put anything, not even [super drawRect] . Then in init, run the following code:
self = [super init]; self.backgroundColor = [UIColor clearColor]; self.opaque = NO; self.translucent = YES; return self;
For more information, follow this link: Can't be transparent UIToolBar?
source share