IOS

JSON String to Android class object conversion using GSON

JSON Array conversion Gson gson = new Gson(); List globalDataListModelArrayList = new ArrayList(); globalDataListModelArrayList = Arrays.asList(gson.fromJson(matterEditModels.get(position).getGlobalDataList(), GlobalDataListModel[].class)); JSON Object conversion Gson gson = new Gson(); GlobalDataListModel globalDataListModelArrayList = new GlobalDataListModel(); globalDataListModelArrayList = gson.fromJson(matterEditModels.get(position).getGlobalDataList(), GlobalDataListModel[].class);

AndroidIOS

Get actual adapter position at Auto Complete TextView in Android

String selection = (String) parent.getItemAtPosition(position);int pos = -1;for (int i = 0; i < clientName.size(); i++) { if (clientName.get(i).equals(selection)) { pos = i; break; }}System.out.println(“Position ” + pos); //check it now in Logcat As Like

IOS

Install xCode command line tool

Open terminal in mac and Install xCode Command line tool with the following command. xcode-select –install Check the update of license sudo xcodebuild -license

December 2020
M T W T F S S
« Nov    
 123456
78910111213
14151617181920
21222324252627
28293031  

Site Statistics

  • Users online: 0 
  • Visitors today : 14
  • Page views today : 14
  • Total visitors : 3,982
  • Total page view: 4,457