This is a fork of [JAPanoView](https://bitbucket.org/javieralonso/japanoview)...
- compatible with the latest iOS SDK (8.0).
- adds Podspec
- - -
# JAPanoView: open source panorama viewer
JAPanoView is a UIView subclass that renders 360-180 degree panoramic views created from cubic panoramic images with interactive panning and zooming. You can add any UIView as a hotspot into JAPanoView.
Watch a video: http://www.youtube.com/watch?v=8g0LcuNzzNM
JAPanoView source code is distributed under Apache license. More info at http://www.apache.org/licenses/LICENSE-2.0.html
Sample images are from http://www.remedypanoramic.com/ and © Remedy Panoramic Design 2010. Included with the permission of the copyright holder.
JAPanoView has been created by Javier Alonso.
http://javieralog.blogspot.com
@javieralog
You can get the latest version from https://github.com/ddebin/JAPanoView
# How to use it
Copy JAPanoView.h and JAPanoView.m to your project.
Make sure your project includes the following frameworks:
- QuartzCore.framework
- UIKit.framework
JAPanoView code uses ARC and iOS deployment target version is iOS 5.0 or later
Latest version was tested using iOS SDK 8.0
Creating a panoramic view:
```objc
JAPanoView *panoView = [[JAPanoView alloc] initWithFrame:self.view.bounds];
[panoView setFrontImage:[UIImage imageNamed:@"TowerHousepano_f.jpg"]
rightImage:[UIImage imageNamed:@"TowerHousepano_r.jpg"]
backImage:[UIImage imageNamed:@"TowerHousepano_b.jpg"]
leftImage:[UIImage imageNamed:@"TowerHousepano_l.jpg"]
topImage:[UIImage imageNamed:@"TowerHousepano_u.jpg"]
bottomImage:[UIImage imageNamed:@"Down_fixed.jpg"]];
[self.view addSubview:panoView];`
```
# Hotspots
Instantiate any UIView subclass and add it as a hotspot with the 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:
```objc
[popover presentPopoverFromRect:hotspot.frame
inView:hotspot.superview
permittedArrowDirections:UIPopoverArrowDirectionAny
animated:YES];
```
There's also a 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).
iOS 720°三维全景图播放组件及Demo
5星 · 超过95%的资源 需积分: 50 14 浏览量
2017-05-06
22:15:06
上传
评论 5
收藏 1.58MB ZIP 举报
闪电Jlaix
- 粉丝: 19
- 资源: 6
最新资源
- 记录了贪心,动态规划等算法基本思想与设计.zip
- 基于菲阿里基本模型,以及MACD RSI BooL 等技术指标 构建一套基于贪心算法策略的智能投顾模型.zip
- oj算法代码-贪心算法.zip
- 基于yolov8行人检测源码+模型.zip
- 公开整理-地级市-绿色专利申请、授权数据集(2000-2022年).xlsx
- 基于Transformer模型的图像质量评分模型实现源码+详细说明文档.zip
- CST电磁场仿真+线性螺旋电感+建模步骤细节和RLC端口配置+CST高级建模操作
- 大数据库实验的报告材料材料(word文档良心出品).doc
- AIS2024 valid
- 最入门的爬虫代码 python.docx
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
- 1
- 2
前往页