I want to add toolbar at the top of the reviewview and dynamically add a bar button to the toolbar and click event But on that button I want to dismiss the picker and toolbar, please help me in this work ... thanks in advance .. text ">
You can create UIToolBar and its buttons in this way -
UIToolbar * toolBar = [[Uitoolbar alloc] initWithFrame: CGRectMake (0.0 f, 324.0 f, 320.0 f, 44.0 f)]; [toolbar set bert style: UIBarStyleBlackTr anslucent]; UIBarButtonItem * Flexibility Space = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemFlexibleSpace goal: zero action: zero]; DoneBtn = [[UIBarButtonItem alloc] initWithBarButtonSystemItem: UIBarButtonSystemItemDone goal: self action: @selector (rejecting Picker :)]; [Toolbar Set ITEMS: [object with the NSARA array: Flexibility, BTN, Zero] Animated: Yes] [Flexibility Space Release]; [edit button release]; You can add buttons And can call a method on the tap of this button, in this method You can dismiss the UIPP view.
Comments
Post a Comment