Please provide the code to make a tip balloon programmatically, like Grindr has.
I want it to be sized automatically, based on the text & font-size. And, I want to be able to change the location of the arrow. If it's on an end, it should be a right triangle. Otherwise, it should be an eqilateral triangle.
You can use a
UIView
on your main view and call it when you need it. You will however have to make theUIView
transparent and probably will need to use an image as the main part of the balloon. In that scenario, you can just useUILabel
's to set the desired message.I wouldn't add another view just to put the triangle on it, have you considered drawing the rounded border and triangle with an UIBezierPath? That will give you more flexibility in your drawing and you can keep everything in just one view.