直接贴代码

@interface TSSlideShowImageView : TTImageView
{
    NSString* _linkURL;
}
@property(nonatomic,copy)NSString* linkURL;

@end
#import "TSSlideShowImageView.h"

@implementation TSSlideShowImageView
@synthesize linkURL = _linkURL;

-(void)dealloc
{
    [_linkURL release];
    [super dealloc];
}

-(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
//    UITouch *touch = [touches anyObject];
    TTOpenURL(_linkURL);
}

@end

相关文章: