|
a***y 发帖数: 19743 | 2 ☆─────────────────────────────────────☆
faucetQ (fq) 于 (Sat May 15 22:56:03 2010, 美东) 提到:
我按照
http://developer.apple.com/iphone/library/documentation/iPhone/
结果都进了
- (void)touchesCancelled:(NSSet *)touches withEvent:(UIEvent *)event
而不是
- (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event
哪位达人有经验?交流一下。
☆─────────────────────────────────────☆
chick (Por Los Momentos Dif Ciles) 于 (Sun May 16 04:07:19 2010, 美东) 提到:
如果是我,就把这几条全部override一遍,然后打log出来看,比如
touchesBegined
touchesFini... 阅读全帖 |
|
S**********r 发帖数: 1410 | 3 I suggest you
1. move backgroundImageView.hidden = !selected;
to within
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event
because it's not a good idea to manipulate UI in a data member's setter.
2. let system generate setter and getter for you. |
|