Skip to content

Instantly share code, notes, and snippets.

/**
* Copyright (c) 2015-present, Facebook, Inc.
* All rights reserved.
*
* This source code is licensed under the BSD-style license found in the
* LICENSE file in the root directory of this source tree. An additional grant
* of patent rights can be found in the PATENTS file in the same directory.
*/
#import "AppDelegate.h"
platform :ios, '8.0'
target 'MyApp' do
pod 'UXFramework'
end
//
// ViewController.swift
// uptoyou
//
// Created by Rex on 4/25/15.
// Copyright (c) 2015 huijun.org. All rights reserved.
//
import UIKit
import Realm
<!--設定Manifest所需權限:-->
<uses-permission android:name="android.permission.INTERNET" />
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE" />
<uses-permission android:name="android.permission.RECORD_AUDIO" />
<!--設定Custom Application-->
android:name=".MyApplication"
<!--設定UXTService-->
// 在專案中的repositories加入
repositories {
flatDir {
dirs 'libs'
}
}
// 在專案中的dependencies加入
compile 'org.bytedeco:javacv:0.10'
compile (name:'uxtestingsdk', ext:'aar')
UXTFramework.Init(this, "UXTesting_App_Key", false);
//method 1
for v in myView.subviews as [UIView] {
v.removeFromSuperview()
}
//method 2
(myView.subviews as [UIView]).map{$0.removeFromSuperview()}
import UIKit
@UIApplicationMain
class AppDelegate : UIResponder, UIApplicationDelegate {
var window : UIWindow?
func application(application: UIApplication, didFinishLaunchingWithOptions launchOptions: [NSObject: AnyObject]?) -> Bool {
self.window = UIWindow(frame:UIScreen.mainScreen().bounds)
self.window!.rootViewController = UIViewController()
let mainView = self.window!.rootViewController!.view
//
// AppDelegate.swift
// testswift
//
// Created by Rex on 12/1/14.
// Copyright (c) 2014 galf.cc. All rights reserved.
//
import UIKit
import UXTesting
//
// AppDelegate.m
// testobjc
//
// Created by Rex on 12/1/14.
// Copyright (c) 2014 galf.cc. All rights reserved.
//
#import "AppDelegate.h"
#import <UXTesting/UXTesting.h>