### 1.UNADGameViewController

小游戏视图控制器。初始化传入对应的广告位id，然后展示出来

```objc
self.gameViewController =[[UNADGameViewController alloc]initWithUnitID:UNAD_TEST_UNIT_ID];

self.gameViewController.modalPresentationStyle = UIModalPresentationFullScreen;
[self presentViewController:self.gameViewController animated:YES completion:nil];
```

主要方法:

````objc
/// 初始化
/// @param unitID 广告单元id
- (id)initWithUnitID:(NSString *)unitID;
      

//微信登录成功后传入获取的code
- (void)wxLoginCallBack:(NSString *)code;

//测试登录方法,
- (void)testWxLoginCallBack:(NSString *)code;
````



### 2.UNADBundle

记得把  UNADBundle.bundle 拖入到项目中,不然返回按钮显示不了
