Thursday 7 January 2016

POJO Classes Automazation


                         Generating POJO classes Procedure

Purpose :
Pojo Classes Automation will provide all data models classes with robust coding standards from Json response. we can create all related model classes with couple of clicks.


Steps to generate POJO Classes.

1.Get the response from webservice  in JSON string format.
2.Install JSON Accelerator (mac App). and Launch it

3 copy paste the JSON format  in JSON  Accelerator app.



5.Click on Genarate files and Set the Folder path to where has to generate the POJO classes

5.Make sure to select objective c  or core data (objective c )
  • On selecting objective c it will generate  data models classes with structure of POJO classes.
  • On selecting  core data (objective c ) it will generate the data models classes for core data model.
6.Give the Name of Main base  “class name” and also specify the Prefix identifier in input fields
7.Submit by chose the folder path to save,.


Integration of generated pojo Classes to Project.

1.Add the POJO generated classes to Project.
2.Call Respective Data filling by allocating the dictionary.

#import "DataModels.h"


 self.arrMeasuremntsObjects = [[NSMutableArray alloc] init];
   
       if ([resultData isKindOfClass:[NSArray class]]) {
           
           NSLog(@"Responce data contains %lu objects ",(unsigned long)[resultData count]);
           for (id data in resultData) {
               MTMeasurements *objMesaurement = [[MTMeasurements alloc] initWithDictionary:data];
               [self.arrMeasuremntsObjects addObject:objMesaurement];

           }
           
           NSLog(@"Coutnt Of Convenrted Objects %li",[self.arrMeasuremntsObjects count]);
           
       }


Source code :  https://github.com/SrinivasaLadi/pojoResponceHandler

Common alert view Controller for both iphone n ipad with ios 7+ support

Hi Folks 

Please have a look at below controller to make easy to use play with alertview and action sheet's

https://github.com/SrinivasaLadi/MTAlertControllerSample/tree/developement


Thanks

Srinivasa ladi

Sunday 13 December 2015

Hi Folks,

Please have a look at below link

https://github.com/hackiftekhar/IQKeyboardManager


Feature:-
1) Support Device Orientation.
2) Enable/Disable Keyboard Manager when needed with enable boolean.
3) Easiest integration.
4) AutoHandle UIToolbar as a accessoryInputView of textField/textView with enableAutoToolbar boolean.
5) AutoHandle UIToolbar can be manged by superview's hierarchy or can be managed by tag property of textField/textView using toolbarManageBehaviour enum.
6) UIView Category for easily adding Next/Previous and Done button as Keyboard UIToolBar, even automatic withenableAutoToolbar boolean.
7) Enable/Disable Next/Previous buttons with Category methods, even automatic with enableAutoToolbar boolean.
8) Set keyboard distance from textFields using keyboardDistanceFromTextField.
9) Resign keyboard on touching outside using shouldResignOnTouchOutside.
10) Manage UITextView's frame when it's hight is too large to fit on screen with canAdjustTextView boolean.
11) Can manage UITextField/UITextView inside UITableView/UIScrollView.
12) Can play input sound on Next/Previous/Done click.