I am getting positions/coordinates(x and y values)from server in inches. How to convert from inches to pixel which is support to retina and without retina. Please help me.
float x= 0.916667;
float Y= 7.885417
float deltaX = x * 72;
float deltaY = y * 72;
UIActivityIndicatorView *avtivity=[[UIActivityIndicatorView alloc]initWithFrame:CGRectMake(deltaX, deltaY, 20, 20)];
[avtivity startAnimating];
avtivity.activityIndicatorViewStyle=UIActivityIndicatorViewStyleGray;
[imgView addSubview:avtivity];
I need to display ActivityIndicatorView on the top off START button in the above screen.