1.hide the Uitextfield cursor after IOS 7
Usually when we use Uipickerview as our Uitextfield Inputview, we need to hide the cursor. Of course, if you want to change the color of the cursor, it is also handled.
1 textfiled.tintcolor = [Uicolor Clearcolor];
One of the remaining problems with this approach is that when we use Uipickerview as the inputview of Uitextfield, we don't want to perform various menu operations (select all, copying, pasting), but just to set Uitextfield Tintcolor, We can still perform this operation, so we need to add extra processing. This problem, we can deal with: in Textfieldshouldbeginediting:, we put Uitextfield's userinteractionenabled set to No, Then in textfieldshouldendediting:, set this value back. As follows:
-(BOOL) textfieldshouldbeginediting: (Uitextfield *) TextField { = NO; return YES;} -(BOOL) textfieldshouldendediting: (Uitextfield *) TextField { = YES; return YES;}
iOS Development---Tips