iphone - Is there any way to resize the UIPickerView so that I can see completely it in center of my application? -
hello trying resize uipickerview below dimension given, not working @ want visible. here datepicker uipickerview declared , synthesized too, should do?
datepicker = [[uipickerview alloc] initwithframe:cgrectmake(100, 200, 100, 150)]; datepicker.delegate = self; datepicker.showsselectionindicator = yes; [self.view addsubview:datepicker];
if not getting mean, can ask me again,,,
cgaffinetransform s0 = cgaffinetransformmakescale(scalefactor, scalefactor); cgaffinetransform t1 = cgaffinetransformmaketranslation(x,y); mypickerview.transform = cgaffinetransformconcat(s0, t1);
you can use 0.5 scalefactor resize pickerview 50%, , change x , y appropriate values make pickerview appear in desired position. note: import quartzcore framework.
Comments
Post a Comment