0

Can anybody tell me the example code for UICalloutView in iphone.

Brian Webster
  • 30,033
  • 48
  • 152
  • 225
Nitin
  • 11
  • 3
  • 11
  • there is no such class in cocoa-touch. Can you revise your question? – Jason Coco Jan 20 '11 at 06:27
  • actually i saw this from http://iphonedevwiki.net/index.php?title=UICalloutView but it's not working. it works like a dialog box . – Nitin Jan 20 '11 at 06:30
  • 1
    You can't use that, it's not a public class. What are you actually trying to do? This view is used by the system when displaying maps. Basically when you tap on a point on the map (an annotation) this view is created, but you can't use it directly. – Jason Coco Jan 20 '11 at 06:46
  • actually i want to display a dialog box or popup menu on the click. – Nitin Jan 20 '11 at 06:54
  • 1
    If you're using a map, look at MKAnnotation (which is where the callout view gets its data from in general), if you're talking about a general dialog box, see UIAlertView and UIActionSheet – Jason Coco Jan 20 '11 at 07:33

1 Answers1

0

There is default callout in mapView. If you want to customize it, refer this and this

Community
  • 1
  • 1
KingofBliss
  • 15,055
  • 6
  • 50
  • 72