sábado, 23 de febrero de 2013

JAPanoView updated: Hotspots

Just updated my panorama viewer UIView subclass. It now supports hotspots: instantiate any UIView subclass and add it as a hotspot with the new method addHotspot:atHAngle:vAngle: indicating the horizontal angle (azimuth) and vertical angle (elevation). To remove a hotspot form a JAPanoView just call removeFromPanoView on the hotspot instance (like addSubview: and removeFromSuperview).

Since any UIView can be a hotspot, you can add any UIControl or add any UIGestureRecognizer to your hotspot and make it fully user interactive. You can also take advantage of the convertPoint/Rect:from/toView: UIView methods and show popovers from a hotspot as seen in the demo project:


[popover presentPopoverFromRect:hotspot.frame inView:hotspot.superview permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];


There's also a new property for UIView shouldApplyPerspective. It indicates if the hotspot should be rendered always parallel to the screen (shouldApplyPerspective==NO) or perpendicular to the point-of-view/hotspot axis (shouldApplyPerspective==YES; default value).

You can get the code from the repository at bitbucket.

7 comentarios:

  1. Great very good implementation of hotspots, like you could be implemented without ARC??

    ResponderEliminar
  2. hello,

    thanks for the great library.

    i am trying to add controls for example when someone clicks on the door it will go to the other room.how i can put button on specific location using t your library?

    thaks

    ResponderEliminar
  3. Hello,

    Thanks for your library.

    So how i can create static UIView on your JAPanoView (same console panel with left, right, up, down button). Please help me ! thanks.

    ResponderEliminar
  4. Hi great library. I found a strange behavior when adding the Japanoview instead of setting it as self.view=panoView; Do you know what is the issue with that? In fact instead of having self.view as the Japanoview I would like to create a UIView and add the Japanoview in it. But the display change a bit and I do not understand why. Can you help? Do know this behavior?
    Many thanks in advance for your help.

    ResponderEliminar
  5. Buen día, una hermosa biblioteca. Por favor, muéstrame cómo subir imágenes a sus Dotsuments carpeta de la biblioteca?

    ResponderEliminar
  6. Buen día, una hermosa biblioteca. Por favor, muéstrame cómo subir imágenes a sus Documents carpeta de la biblioteca?

    ResponderEliminar
  7. Hi very very great library. I'm trying to build an app which can also show panoramic videos. Have you planed to add some video features to your library? If not can you give me a general idea how to implement playing panoramic videos?

    Thank you very much

    ResponderEliminar