I've moved this gist to https://github.com/phynet/iOS-Schemes please check it there ;)
Testing to verify a product meets customer specified requirements. A customer usually does this type of testing on a product that is developed externally.
Testing without knowledge of the internal workings of the item being tested. Tests are usually functional.
Testing to ensure compatibility of an application or Web site with different browsers, OSs, and hardware platforms. Compatibility testing can be performed manually or can be driven by an automated functional or regression test suite.
- Add UItableView inside ViewController in Storyboard.
- Create IBOutlet called tableView
- Set Delegate and DataSource in ViewController in Storyboard
class ViewControllerCustom: UIViewController, UITableViewDelegate, UITableViewDataSource {
var items: [String] = ["Swift1", "Swift2", "Swift3"]
1.- First thing, install Gradle SDK. Download the latets version and install it in your root.
2.- You'll need to have Android Studio installed also. I've downloaded the sdk and went to tools directory to start the android sdk (http://developer.android.com/sdk/installing/adding-packages.html )
$: android-sdk-macosx/tools
##Generate and Install IPA's file in device through Command Line
###Thanks to Mattt and phonegap's scripts
Take a note: all this steps can be automatized in a single script, if you know how to write it. (Bash or Ruby will be fine)
1.- Install your Provisioning Profile and Developer Certificate
2.- Install Shenzhen and ios-deploy: the firstone will generate the IPA file and the secondone will install it onto your device
let 𝜋 = M_PI | |
let ɸ = (1 + sqrt(5))/2 | |
func drawTiles(tileCount: Int, height: Double, context: CGContext) { | |
let red = CGFloat(arc4random_uniform(100)) / 100.0 | |
let green = CGFloat(arc4random_uniform(100)) / 100.0 | |
let blue = CGFloat(arc4random_uniform(100)) / 100.0 | |
context.setFillColor(red: red, green: green, blue: blue, alpha: 1.0) | |
let rect = CGRect(x: 0, y: 0, width: height, height: height) // CGFloat, Double, Int |
##Setting spaces between characters with Swift (iOS)
###UIButton
@IBOutlet weak var button: UIButton!
button.titleLabel?.attributedText = NSAttributedString(string: string, attributes:[ NSKernAttributeName: 1.3])
var array = []; | |
for (key in dictPush){ | |
temp = {}; | |
temp[key] = dictPush[key]; | |
array.push(temp); | |
} |
now in swift 4 you just have to import a briding header into Test target and reference objc-class .h files there...using @testable import nameOfYourApp should work
In Swift there's a message in "Test Target" that states that the bridging header will be removed in newer versions of swift. I'm using mixed objc and swift clasess, but the UnitTest class is a swift file. Using @testable key was there in code
@testable import YourProject
You fix it by adding in your Test area the bridging header with objc headers that your test will use: