How do I create a uibutton, which will show a uilabel of some text briefly something like a speech bubble that will appear and then disappear. The problem is the speech bubble will be a view lying halfway outside the button frame.
thanks for help on this.
Add a UIButton in the .xib file and give some name.
Add the folowing method in your code.
- (IBAction)bubbleButn:(UIButton *)btnThen right click on the button and see the “Touch Up Inside” part in the menu. Then you can click and drag the right most circle to the files owner in the “Placeholders” section of the Xocde. Then you can see the method name comes in a menu. You can select our method from there.
Next we are going to implement our code.
At first you must declare a UILabel in the .h file.
and then in the .m file implement the button action and label settings.
The label named “Hi” will be there for 3 seconds.
Go on…