limit android text entry length
android:maxLength="4" such a simple solution to a simple problem
android:maxLength="4" such a simple solution to a simple problem
Today i learned how to make a static singleton class in swift
class SharedManager{
static let sharedInstance = ShareManager()
///properties and methods below
}
Today I had to integrate a project that I am working on for open source distribution with Cocoapods. I have used this repository manager before but not in swift.
You have to uncomment or type in !use_frameworks in you Podfile
You then type in the appropriate space which pods you want to install
Then do pod install
Create a header file for bridging the objective c code
Then in your build settings , swift code generation area type in the name of the header file you just created
# Uncomment this line to define a global platform for your project
platform :ios, '9.0'
# Uncomment this line if you're using Swift
use_frameworks!
target 'TippleiOS' do
pod 'Stripe', '~> 4.0'
pod 'AFNetworking', '~> 2.5.4'
end
target 'TippleiOSTests' do
end
target 'TippleiOSUITests' do
end
Today I learned to use Calabash https://github.com/calabash/ a testing framework based off of Cucumber for Test Driven Development for iOS and Android. This helped me learn more of the Ruby language and also teach me more about what was going on underneath the framework. Specifically with the use of Rspec ,another tool that works in tandem with Cucumber, I also learned about the expectation commands to help me use the expect method. While learning these tools I was taught some commands that utilize RVM, some of the gem package methods. I am hoping to carry these skills with me on to other projects.