finb / v2ex-swift Goto Github PK
View Code? Open in Web Editor NEWAn iOS client written in Swift for V2EX
License: MIT License
An iOS client written in Swift for V2EX
License: MIT License
有些帖子需要登录才能查看。
如果未登录直接进入 detail 页面,这时 getTopicDetailById 请求返回的是登录页面,这时会看到一片空白。
建议可以先加下简单的 toast 提醒
例子:topic id = 452210
感谢制作了这个好用的客户端。
帖子列表翻页的时候会出现重复的内容,请问可否考虑去重?
由于官方的 api 并不十分完善,想问下获取帖子 List 和登录这样的功能是用什么技术实现的?
收藏多了一个个取消太麻烦
无注册页面,在v2ex网站注册账号,也显示登录失败
我看了你的源码,自己试着用你的代码加载其他网页,发现有的时候帖子下面会有一大段的空白,应该是webview内容计算高度有问题?同样一个网页一下进去高度正常,一会进去又有一大段空白,这种情况大概会是什么问题啊?
ps. 为什么不加上发帖子功能呢?
例如:
:)
怎么注册
网站上有个js插件可以实现,不知道app里有没有可能做成,难度大不
我看现在app里已经实现了上下文的查看了
我尝试着加了一下,但V2Inform("请先登录") ,但它不显示
然后在,网上找了一段toast的代码
extension UIViewController {
func showToast(message : String) {
let toastLabel = UILabel(frame: CGRect(x: self.view.frame.size.width/2 - 75, y: self.view.frame.size.height-100, width: 150, height: 35))
toastLabel.backgroundColor = UIColor.black.withAlphaComponent(0.6)
toastLabel.textColor = UIColor.white
toastLabel.textAlignment = .center;
toastLabel.font = UIFont(name: "Montserrat-Light", size: 12.0)
toastLabel.text = message
toastLabel.alpha = 1.0
toastLabel.layer.cornerRadius = 10;
toastLabel.clipsToBounds = true
self.view.addSubview(toastLabel)
UIView.animate(withDuration: 4.0, delay: 0.1, options: .curveEaseOut, animations: {
toastLabel.alpha = 0.0
}, completion: {(isCompleted) in
toastLabel.removeFromSuperview()
})
} }
它就显示了,大佬看一下呗,加个提示会友好些
rt
path: V2ex-Swift/Common/V2EXColor.swift
line 385: static var thmemChanged = "thmemChanged"
'thmemChanged' 应为 ‘themeChanged'
我现在想给别人分享,还是先用浏览器打开,然后再在浏览器里分享出去,有些麻烦
啥时候升级到 Swift 3 呢?现在用 Xcode 8 编译不了
例如:
谢谢。
我用v2帐号登录后然后点我的头像会跳到登录页面
三四天前开始出现,估计是网页改版了。麻烦看一下咯
怎么实现带验证码的登陆呢
topic id:472903
第一个回复有个 youtube 链接
不确定是不是bug。登陆后点击头像出来的还是登录界面。。
不过确实很好用!大赞!
失败
使用相同的用户名密码,web端可以,但是APP一直报 登录失败。
V2FPSLabel alarm in AppDelegate :
implicit Objective-C entrypoint -[NavigationDrawer_Swift.V2FPSLabel tick:] is deprecated and will be removed in Swift 4
v2ex增加了验证码,有更新的计划吗?
尝试做一下缓存啊
MAC OS X EI Capitan 10.11
XCode 7.2.1
clone完成后pod install成功,但编译出现
~/V2ex-Swift/Pods/YYText/YYText/Component/YYTextEffectWindow.h:16:9: 'YYtext/YYTextSelectionView.h' file not found
~/V2ex-Swift/View/TopicDetailCommentCell.swift:10:8: Could not build Objective-C module 'YYText'
是哪里少做了吗?
浏览过是什么颜色,浏览过并且有新回复另一种颜色
https://www.v2ex.com/t/484971
这个帖子里面的博客链接打开之后,会自动唱歌,然后返回到详情页,还是会唱,再打开一个其他的帖子里面的链接,后台音乐还是不停,除非把app强退了,音乐才会停止。
打开app,随便点一个主题,然后进入帖子的明细。这个时候,leftbutton和rightbutton图标变的斑白。
返回住界面,leftbutton和rightbutton的图标一直斑白,但是点击可以响应。
xcode8.1,clone下来pod install运行界面空白,提示-canOpenURL: failed for URL: "org-appextension-feature-password-management://" - error: "The operation couldn’t be completed. (OSStatus error -10814.)"
您好,最近我也正在写一个v2ex,我之前对话题详情的处理是,HTML转换成图文混排(但是由于图片都是地址链接形式的,导致部分的图片显示的不完美,而且代码特别多)。看了您的代码的处理(HTML处理方式),我受益匪浅。感谢开源分享
the pod file :Podfile did not support for cocoaPods version 1.0.0 beta3
fix , please include
target "V2ex-Swift" do
end
有时候分享到qq会失败,也不知道为啥,就只能用safari打开了,然后再复制链接,比较麻烦,所以如果能有个复制帖子链接的功能就好了
只能加载用户创建的回复的第一页,无法加载后面的回复列表,iOS 9.3.3
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.