Comments (6)
回调是异步的,所以会继续执行。一般好像都没有针对页面销毁,停掉网络请求的处理。当然前提是要保证 控制器要销毁,否侧会有问题。
from wechat.
emmmm, 我想知道有没有办法手动把这个网络请求停掉, 我看 despose 里面有个 [task cancel]; 但是只有 task 执行完成了才会走, 等于没什么作用.
如果碰到网络较慢的情况的话, 连续走两遍刷新会刷出同样的数据. 或者说当一个页面有多个网络请求的时候, 无法停掉上一个请求会造成数据错乱.(当然有其他方法避免, 但是比较懒~)
from wechat.
嗯嗯 平常大家好像都高度统一的忽略了退出界面取消网络请求了。[笑Cry]
from wechat.
你们一般是直接拷贝代码进项目直接用吗?
from wechat.
你们一般是直接拷贝代码进项目直接用吗?
我是照着搭一下,学习一下框架的结构设计
from wechat.
一般会有个人搭建框架的,然后后面的小伙伴就可以直接用了,不用关注内部的实现。
from wechat.
Related Issues (20)
- header view高度方法走两次的问题楼主解决了吗? HOT 2
- 当点赞用户超过3个以上,长按点赞用户昵称的时候,会把','号也包括进去了 HOT 1
- 点击朋友圈当中的评论,没有弹出输入评论的界面,什么反应也没有,奇怪 HOT 3
- 评论时可以加emoji表情吗? HOT 6
- 请问如何在特定的情况下 切换baseUrl HOT 1
- ios13在跟视图present一个视图然后下拉页面消失重新再present无效 HOT 2
- 请问 如何在某个页面 强制横屏呢 HOT 1
- 请问大神想单独使用朋友圈模块,怎么提取出来呢? HOT 2
- 就冲你这项目文案,必须粉了
- 我目前甚至以后见到的最详细的注释
- pod找不到库,YYCache方法报错,求指导 HOT 7
- 朋友圈图片点击后无法显示 HOT 6
- 昨天反馈你的图片不显示的问题我找到了 是iOS14以后的系统 HOT 2
- 三方库 SGEasyButton 没有了 HOT 5
- 项目用xcode12打开一直是loading状态
- 大佬好,项目用上了ViewModel-Base驱动,现在准备搞组件化,用route分离耦合模块,这个结构请问是不是不合适了 HOT 4
- Incompatible block pointer types sending 'void (^)(NSString * _Nonnull __strong, NSArray * _Nonnull __strong)' to parameter of type 'void (^ _Nullable)(NSString * _Nonnull __strong, id<NSCoding> _Nonnull __strong)' HOT 3
- 方便问一下你现在转前端做的怎么样吗? HOT 1
- heightForHeaderInSection 执行两次的问题 HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from wechat.