2013-02-27 50 views
0

我想实现Google分析我的IOS应用程序,并遇到以下问题:如果你想在GA跟踪器初始化为特定视图(让叫它查看X),你需要GAITrackedViewController.h类扩展到视图X 。Google分析的IOS并延长了两个多类?

就我而言,我已经在我的项目扩展另一个类,因为我们都知道你不能延长2班。所以我想知道,我如何在目标C中解决这个问题?请记住,我不是一个非常有经验的程序员,我也是客观C的新手。

我将发布我的HomeViewController.h,它被称为View X示例。正如你可以看到它已经延伸MLUIViewController。如果我也想对GAITrackedViewController,使Google分析,我该如何实现这一目标? /问候

#import <MessageUI/MessageUI.h> 
#import <MessageUI/MFMailComposeViewController.h> 

@interface HomeViewController : MLUIViewController <UITableViewDelegate, UITableViewDataSource, UISearchBarDelegate, UIActionSheetDelegate, UIAlertViewDelegate, MFMailComposeViewControllerDelegate, UIGestureRecognizerDelegate, MLSearchTaskDelegate, MLDeactivateDelegate> 

{ 
IBOutlet UITableView *tableView; 
IBOutlet UIBarButtonItem *menuButton; 

IBOutlet UILabel *infoViewTitle; 
IBOutlet UIView *infoView; 

...................... 

回答

2

只是要MLUIViewControllerGAITrackedViewController继承和HomeViewController实施GAITrackedViewController功能。