[Solved] how to create login screen for iPhone Xcode [closed]

if([_txt_username.text isEqual:@”rotanet”] && [_txt_username.text isEqual:@”rotanet”]){ UIStoryboard *storyboard = [UIStoryboard storyboardWithName:@”Storyboard” bundle:nil]; ViewController* viewController = [storyboard instantiateViewControllerWithIdentifier:@”ViewController”]; [self presentModalViewController: viewController animated: YES]; } 2 solved how to create login screen for iPhone Xcode [closed]

[Solved] iPhone 4s looking simulator

Because of the extremely high pixel density of a retina display, creating a video with pixel-perfect retina graphics will require you to have a really big monitor. The is because monitors have far less pixel density than an retina display. The best way to accomplish your video is to use the non-retina simulator. If you … Read more

[Solved] Generate PDF file in ios [duplicate]

Create your custom view to add image, tableview or anything. Points the pdf converter to the mutable data object and to the UIView to be converted to pdf. Try this: NSMutableData *pdfData = [NSMutableData data]; UIGraphicsBeginPDFContextToData(pdfData,self.bounds, nil); UIGraphicsBeginPDFPage(); CGContextRef pdfContext = UIGraphicsGetCurrentContext(); // draws rect to the view and thus this is captured by UIGraphicsBeginPDFContextToData … Read more

[Solved] How to zoom image by slide? [closed]

2 things to do: Configure the slider so that its min and max values are equal to the min and max zoom scale of your scroll view Use [imageScrollView setZoomScale:sender.value]; to update the zoom when the slider is changed Also, check the superview that your slider is added to. It shouldn’t be added to the … Read more

[Solved] How to convert data string to json object and string in iOS?

Use this NSString *str=@”{\”Data\”: [{\”ID\”:\”1\”,\”Name\”:\”Raj\”},{\”ID\”:\”2\”,\”Name\”:\”Rajneesh\”}]}”; NSMutableDictionary *dict=[NSJSONSerialization JSONObjectWithData:[str dataUsingEncoding:NSUTF8StringEncoding] options:kNilOptions error:nil]; NSMutableArray *dataArr=[dict valueForKey:@”Data”]; for (NSDictionary *userData in dataArr) { NSLog(@”Id:%@ Name:%@”,[userData valueForKey:@”ID”],[userData valueForKey:@”Name”]); } 0 solved How to convert data string to json object and string in iOS?

[Solved] i have json data given below and i want to display it in a table

In your .h file take NSMutableArray : @property (nonatomic, retain) NSMutableArray *employeeData; in .m file @synthesize employeeData; Then Make Necessary changes in your code. -(void)getEmpData { self.employeeData=[[NSMutableArray alloc] init]; NSData *jsonData = @”Your Json Data”; NSDictionary *jsonDictionary = [NSJSONSerialization JSONObjectWithData:jsonData options:kNilOptions error:&error]; NSArray *arrDepartment = [jsonDictionary objectForKey:@”Departments”]; NSArray *arrEmployees = [[arrDepartment objectAtIndex:0] objectForKey:@”Employees”]; self.employeeData= [arrEmployees … Read more