IOS [[Tool Instance] getUser]引发的血案
来源:互联网 发布:伤感的网络歌曲有哪些 编辑:程序博客网 时间:2024/05/22 01:54
self.user = [[ToolInstance]getUser];
怎么会界面全乱 我靠 你牛逼啊 按钮啥的都不见了 动画直接失效 报约束的错误
Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want. Try this: (1) look at each constraint and try to figure out which you don't expect; (2) find the code that added the unwanted constraint or constraints and fix it. (Note: If you're seeing NSAutoresizingMaskLayoutConstraints that you don't understand, refer to the documentation for the UIView property translatesAutoresizingMaskIntoConstraints)
(
"<NSLayoutConstraint:0x7913d990 H:[UIImageView:0x791414d0(-10.825)]>"
)
Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x7913d990 H:[UIImageView:0x791414d0(-10.825)]>
Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
而getUser
-(User*)getUser
{
NSUserDefaults * settings = [NSUserDefaultsstandardUserDefaults];
NSData* d = [settings objectForKey:@"User"];
User* user = [NSKeyedUnarchiverunarchiveObjectWithData:d];
return user;
}
也就是读取一个缓存 什么都没干 以前好像也遇到过乱七八糟的问题百思不得其解 记录一下把 没法 把getUser换一个地方 哎 神奇的代码!
- IOS [[Tool Instance] getUser]引发的血案
- ActiveX引发的“血案”
- size_t引发的血案
- 一个 * 引发的血案
- gets引发的血案
- Print 引发的“血案”
- lease引发的血案
- 一个“-”引发的血案
- MD5引发的血案
- 一个"/"引发的血案
- wrap_content引发的血案
- merge_all引发的血案
- PersistableBundle引发的血案
- 看球引发的血案
- 一个松果引发的血案
- 一个memset引发的血案
- 一条语句引发的血案
- 一条短信引发的血案
- C++ 关键字 explicit, export, mutable
- Android实战简易教程-第四十六枪(自定义控件体验之罗盘)
- Win7 Chrome的缓存及用户数据位置修改
- const总结
- 信息熵
- IOS [[Tool Instance] getUser]引发的血案
- java成员的初始化 --thinking in java学习笔记(三)
- HDU 3268 Columbus’s bargain
- App启动闪屏黑屏问题
- 黑马程序员-C-switch语句
- 输出单层结点
- java多线程之三
- UML总结(对九种图的认识和如何使用Rational Rose 画图)
- Android笔记 4