mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-06 13:47:48 +00:00
GEEKING
This commit is contained in:
@@ -0,0 +1,47 @@
|
||||
//
|
||||
// TermsAgreementController.m
|
||||
// RobloxMobile
|
||||
//
|
||||
// Created by Ariel Lichtin on 5/22/14.
|
||||
// Copyright (c) 2014 ROBLOX. All rights reserved.
|
||||
//
|
||||
|
||||
#import "TermsAgreementController.h"
|
||||
#import "RobloxTheme.h"
|
||||
#import "RobloxInfo.h"
|
||||
#import "UIView+Position.h"
|
||||
|
||||
@interface TermsAgreementController ()
|
||||
|
||||
@end
|
||||
|
||||
@implementation TermsAgreementController
|
||||
{
|
||||
IBOutlet UIWebView *_webView;
|
||||
IBOutlet UINavigationBar *_navBar;
|
||||
}
|
||||
|
||||
- (void)viewDidLoad
|
||||
{
|
||||
[super viewDidLoad];
|
||||
|
||||
[RobloxTheme applyToModalPopupNavBar:_navBar];
|
||||
|
||||
NSURL *url = [NSURL URLWithString:self.url];
|
||||
NSURLRequest *requestObj = [NSURLRequest requestWithURL:url];
|
||||
[_webView loadRequest:requestObj];
|
||||
[_webView setScalesPageToFit:YES];
|
||||
}
|
||||
|
||||
- (void)viewWillDisappear:(BOOL)animated
|
||||
{
|
||||
[super viewWillDisappear:animated];
|
||||
[_webView stopLoading];
|
||||
}
|
||||
|
||||
|
||||
- (IBAction)closeButtonTouched:(id)sender
|
||||
{
|
||||
[self dismissViewControllerAnimated:YES completion:nil];
|
||||
}
|
||||
@end
|
||||
Reference in New Issue
Block a user