参考链接:
http://stackoverflow.com/questions/2184419/what-does-request-for-member-in-something-not-a-structure-or-union-me
最根本的原因在于
1, 你要去访问一个Object 或者 Structure里没有的成员变量.
class TestClass {
UILabel *nameLabel;
}
TestClass t = [TestClass new];
t.numberLabel.text = @"haha";//TestClass根本没有numberLabel.所以访问不了.
[t release];
2,或者你访问的这个对象根本不是对象.
struct {
int a;
int b;
} foo;
int fum;
fum.d = 5;//fum根本不是对象