main
#import <Foundation/Foundation.h>
int main(int argc, const char * argv[]) {
//SouthIndia
NSMutableArray * APDistricts = [[NSMutableArray alloc]initWithObjects:@"Chittoor",@"Anathapur",@"YSRDist",@"Karnool",@"Guntur", nil];
NSMutableArray * tamilNaduDistricts = [[NSMutableArray alloc]initWithObjects:@"Coimbatore",@"Chennai",@"Kanchipuram",@"Vellore",@"Madurai", nil];
NSMutableArray * telanganaDistricts = [[NSMutableArray alloc]initWithObjects:@"RangaReddy",@"Hyderabad",@"Medak",@"Nalagonda",@"Warangal", nil];
NSMutableArray * karnatakaDistricts = [[NSMutableArray alloc]initWithObjects:@"Udupi",@"Tumakuru",@"Mysuru",@"Raichur",@"Bellary", nil];
NSMutableDictionary * southIndia = [[NSMutableDictionary alloc]initWithObjects:@[APDistricts,tamilNaduDistricts,telanganaDistricts,karnatakaDistricts] forKeys:@[@"AP",@"TN",@"TS",@"KN"]];
//NorthIndia
NSMutableArray * punjabDistricts = [[NSMutableArray alloc]initWithObjects:@"Amritsar",@"Patiala",@"Faridkot",@"Jalandhar",@"Ferozepur", nil];
NSMutableArray * uttarPradeshDistricts = [[NSMutableArray alloc]initWithObjects:@"Allahabad",@"Lucknow",@"Varanasi",@"Aligarh",@"Kanpur", nil];
NSMutableArray * himachalPradeshDistricts = [[NSMutableArray alloc]initWithObjects:@"Bilaspur",@"Kullu",@"Solan",@"Shimla",@"Chamba", nil];
NSMutableArray * haryanaDistricts = [[NSMutableArray alloc]initWithObjects:@"Panipat",@"Faridabad",@"Mahendragarh",@"Gurgaon",@"Palwal", nil];
NSMutableDictionary * northIndia = [[NSMutableDictionary alloc]initWithObjects:@[punjabDistricts,uttarPradeshDistricts,himachalPradeshDistricts,haryanaDistricts] forKeys:@[@"PUN",@"UP",@"HP",@"HY"]];
//EastIndia
NSMutableArray * biharDistricts = [[NSMutableArray alloc]initWithObjects:@"Arwal",@"Aurangabad",@"Banka",@"Darbhanga",@"Gaya", nil];
NSMutableArray * jharkhandDistricts = [[NSMutableArray alloc]initWithObjects:@"Ranchi",@"Pakur",@"Dumka",@"Jamtara",@"Ramgarh", nil];
NSMutableArray * odishaDistricts = [[NSMutableArray alloc]initWithObjects:@"Puri",@"Jaipur",@"Cuttack",@"Kalahandi",@"Balasore", nil];
NSMutableArray * westBengalDistricts = [[NSMutableArray alloc]initWithObjects:@"Alipurduar",@"Bankura",@"Birbhum",@"Darjeeling",@"Howrah", nil];
NSMutableDictionary * eastIndia = [[NSMutableDictionary alloc]initWithObjects:@[biharDistricts,jharkhandDistricts,odishaDistricts,westBengalDistricts] forKeys:@[@"BI",@"JK",@"OD",@"WB"]];
//WestIndia
NSMutableArray * goaDistricts = [[NSMutableArray alloc]initWithObjects:@"South Goa",@"North Goa", nil];
NSMutableArray * gujaratDistricts = [[NSMutableArray alloc]initWithObjects:@"Ahmedabad",@"Aravalli",@"Anand",@"Valsad",@"Surat", nil];
NSMutableArray * maharastraDistricts = [[NSMutableArray alloc]initWithObjects:@"Washim",@"Latur",@"Hingoli",@"Buldana",@"Amravati", nil];
NSMutableArray * rajasthanDistricts = [[NSMutableArray alloc]initWithObjects:@"Ajmer",@"Alwar",@"Baran",@"Barmer",@"Churu", nil];
NSMutableDictionary * westIndia = [[NSMutableDictionary alloc]initWithObjects:@[goaDistricts,gujaratDistricts,maharastraDistricts,rajasthanDistricts] forKeys:@[@"GOA",@"GUJ",@"MR",@"RJ"]];
NSMutableDictionary * india = [[NSMutableDictionary alloc]initWithObjects:@[southIndia,northIndia,eastIndia,westIndia] forKeys:@[@"SI",@"NI",@"EI",@"WI"]];
NSLog(@"%@",india);
return 0;
}
Sign up here with your email
ConversionConversion EmoticonEmoticon