Comments (1)
/*!
- 填充 username,createdAt 等数据
*/ - (void)fillPointerUser:(AVUser *)pointerUser {
AVUser *fullUser = [self lookUpUserById:pointerUser.objectId];
//为了去掉用户名后边的id值,--begin--
NSString *temp =fullUser.username;
//NSLog(@"-----digname:---%@--------",temp);
NSArray *strArr = [temp componentsSeparatedByString:@"_"];
fullUser.username=strArr[0];
//为了去掉用户名后边的id值,--end--
[pointerUser objectFromDictionary:[fullUser dictionaryForObject]];
}
我在这个方法里改了展示的名字
然后发现点赞时 - (void)digOrCancelDigOfAlbum:(LCAlbum *)album block:(AVBooleanResultBlock)block {
AVUser *user = [AVUser currentUser];
if ([album.digUsers containsObject:user]) {
[album removeObject:user forKey:KEY_DIG_USERS];
} else {
[album addObject:user forKey:KEY_DIG_USERS];
}
[album saveInBackgroundWithBlock:block];
}
又重新调用了saveInBackgroundWithBlock又把名字重新赋值了
现在乱了 ,指点一下看看怎么能把这个避免过去呢
from lzalbum.
Related Issues (20)
- 评论点击事件问题
- 把key值换成自己的以后为什么不能看见评论,点赞及发状态人的姓名了。换回来以后就恢复正常了。是后台建的表有问题吗 HOT 3
- 登录引发崩溃 HOT 1
- demo 运行出错 HOT 1
- 发现一个小问题:滑动过程中图片显示问题,如正文的GIF演示
- 容易奔溃
- 唉,注册都不能注册 HOT 13
- 没法登陆
- 评论按钮为什么点击没反应啊?还有后台的账号密码登录不进去了已经,是不是已经被修改了呢?
- 注册时候更新头像报错
- 后台的账号已经无法登陆
- 权限的问题
- 有问题的看着里,希望对你有帮助
- 下载后缺失文件
- 打开应用之后只有一个空白界面 HOT 7
- 你好,我是iOS新手,请问cocoapods的问题怎么解决 HOT 7
- pid HOT 5
- 你好:我下载了cocoapods,但是打开workspace发现报错 HOT 3
- 动态库和静态库只能选择一个是吗 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 lzalbum.