1
我試圖掛鉤使用徽標的CLLocationManager's
delegate屬性的設置。我當前的代碼如下所示:Theos/Logos掛鉤設置的ivar/property
%hook CLLocationManager
-(void)startUpdatingLocation
{
%orig;
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"test"
message:@"hello!"
delegate:nil
cancelButtonTitle:@"Bye"
otherButtonTitles:nil];
[alert show];
[alert release];
}
%end
我要重寫委託屬性的設置,所以我可以創建一個代理類,可以過濾在發送到應用程序的位置。有沒有任何使用徽標的好辦法?
謝謝!
完美的作品,謝謝! – user408952