Few moment with Android


1. Android Core Building Blocks                                                 An android component is simply a piece of code that has a well defined life cycle e.g. Activity, Receiver, Service etc. (i) Activity : An activity... Continue Reading →

Advertisements

Touch ID Authentication in iOS App


Step 1: Add Local Authentication framework to you Application Step 2: Import #import <LocalAuthentication/LocalAuthentication.h> in your class Step 3: Write code for Touch Authentication. - (IBAction)MakeTouchIdAthentication:(id)sender {     LAContext *context = [[LAContext alloc] init];          NSError *error = nil;     if ([context canEvaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics error:&error]) {         [context evaluatePolicy:LAPolicyDeviceOwnerAuthenticationWithBiometrics... Continue Reading →

2014 in review


The WordPress.com stats helper monkeys prepared a 2014 annual report for this blog. Here's an excerpt: The concert hall at the Sydney Opera House holds 2,700 people. This blog was viewed about 16,000 times in 2014. If it were a concert at Sydney Opera House, it would take about 6 sold-out performances for that many... Continue Reading →

Common method in Swift


1. Check for any field empty in NSDictionary class func checkforEmptyValueinDictioanty(dic:NSDictionary)-> Bool{ for (keyVal, dataVal) in dic {   if (dataVal.length()==0){                 println("\(keyVal): \(dataVal.length())")                 return false             }                 ... Continue Reading →

Use different font text in a Label in swift


let secondLabel=UILabel(frame: CGRectMake(0, 16, _screenWidth-2, 20))         secondLabel.textColor=UIColor.whiteColor()         secondLabel.textAlignment=NSTextAlignment.Center         secondLabel.font=UIFont(name: "Arial", size: 12)         bottomView.addSubview(secondLabel)                  let attrSting=NSMutableAttributedString(string: "I agree to the Terms of Service and Privacy Policy.")             ... Continue Reading →

Open Setting from your iOS application


Step 1.  Add a method in AppDelegate private func setSettings() {         let userDefaults = NSUserDefaults.standardUserDefaults()         let defaults = [ "AppTitle" : "SettingLinker" ]         userDefaults.registerDefaults(defaults)         userDefaults.synchronize()         println(userDefaults.dictionaryRepresentation())     } Step 2. Call this function from... Continue Reading →

Blog at WordPress.com.

Up ↑

%d bloggers like this: