开发者

Can i make a tips for the UIButton

i want to create a UIButton. When the user focus on this button, it will shows the tips to the 开发者_运维问答user. Can anyone tell me how to do?


You might want to to something where if the user does a long press on a button a UIPopoverController or just a simple UIView appears with the information you want to show. With a button you could link a method to the touchDownInside and record the time of press or start a timer that fires in a second or two. If the timer fires the tip appears, if the user lifts their touch before then the touchUpInside method cancels the timer and performs the intended function. Something like that.


It is not meant to work this way. Have a look at the iOS Human Interface Guidelines.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜