//中添加觀察者
[self :self :@"" : | :@""];
- (void)th:( *) :(id) :( *) :(void *){
if ( == @"") {
self. = [[@"old"] ];
if (self. == self.) {
;
}
//設置按鈕選中
[self :self.];
* btn = self.[self.];
//讓選中按鈕居中
min = / 2 ;
if ( = self..count - min) {
* = self.[self..count - min - 1];
btnx = ( % 2 ) ? ..x : (..x + btn.frame.size.width * 0.5) ;
= ..x - btnx;
[ :0.25 :^{
. = (- ,0);
}];
}else if ( > min && < self..count - min && self..count > ) {
btnx = ( % 2 ) ? btn..x : (btn..x - btn.frame.size.width * 0.5) ;
= ..x - btnx;
[ :0.25 :^{
. = ( -ios 搜索關鍵字高亮ios 搜索關鍵字高亮, 0);
}];
}
} else {
[super th: : : :];
}
}