charlinfeng / photobrowser Goto Github PK
View Code? Open in Web Editor NEWPhoto Browser Terminator
License: MIT License
Photo Browser Terminator
License: MIT License
PhotoBrowser+Main.swift 文件
原先的代码:
`
/** come on */
func image(image: UIImage, didFinishSavingWithError: NSError, contextInfo:UnsafePointer){
self.view.userInteractionEnabled = true
if (didFinishSavingWithError as NSError?) == nil {
showHUD("保存失败", autoDismiss: 2)
}
else{
showHUD("保存成功", autoDismiss: 2)
//记录
photoArchiverArr.append(page)
}
}
`
修改后的代码:
`
/** come on */
func image(image: UIImage, didFinishSavingWithError: NSError, contextInfo:UnsafePointer){
self.view.userInteractionEnabled = true
if (didFinishSavingWithError as NSError?) == nil {
showHUD("保存成功", autoDismiss: 2)
//记录
photoArchiverArr.append(page)
}
else{
showHUD("保存失败", autoDismiss: 2)
}
}
`
比如双击放大, 两个手指放大或缩小?
这个什么时候会支持swift3.0
我发现你总是喜欢吹牛逼,把自己写的东西吹上天,其实质量并没有那么高。这不是一个牛逼的程序员该有的素质
分享的特别好,正是我们所需要的,非常感谢。
xcode7 GM,swift2.0什么时候支持呢?
我项目有引入第三方项目SwiftyJSON的源码
在引入PhotoBrower项目后,SwiftyJSON报异常如下:
/Users/ap/Desktop/MyProjects/ap1983/ap1983/lib/SwiftyJSON/SwiftyJSON.swift:1007:32: 'JSON' is ambiguous for type lookup in this context
PhotoBrower项目中也有JSON类冲突了吗?
冯老师,这个要怎么搞?
转屏多次 会无响应 也不抛错
加载网络图片后imageIsLoaded
func imageIsLoaded(img: UIImage,needAnim: Bool)下dispatch_async 会重置布局 新手 可能考虑不全
不建议使用
如题,请问有dismissHud()有释放内存的方法吗?
342行 imageView = UIViewContentModeScaleToFill;
应该是imageView.contentMode = UIViewContentModeScaleToFill;吧
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.