Skip to content

Jovins/VRPhoto

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

VRPhoto

VR全景图片浏览器,喜欢就点下star哈☺️

实现思路


在VRPhotoLib文件夹中有个文件Bridging-Header.h需要进行桥接.

桥接文件示意图

如何使用,如下:

func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
	let filePath = Bundle.main.path(forResource: bundle + photos[indexPath.row], ofType: "jpg")!
    let photoVC = MMPhotoViewController(nibName: nil, bundle: nil, urlString: filePath)
    present(photoVC, animated: true, completion: nil)
}

注: NavigationBarLib文件夹是实现导航栏的隐藏和显示,值得学习。


VR全景图片示例:

紫禁城


About

VR图片浏览器

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published