iphone - ios uitextfield like notes -


i wish uitextfield seems notes of iphone, yellow lines.. what's best way this? in advance!

you mean uitextview right? ... not uitextfield. however, clear background on uitextview.

self.textview.backgroundcolor =  [uicolor clearcolor]; 

then create imageview u put subview textview.

backgroundimage = [[uiimageview alloc] initwithframe: cgrectmake(0, -14,textview.frame.size.width, textview.fram.size.height)]; 

set pattern image backgroundcolor. lines. create on or 2 lines . should repeat itself.

backgroundimage.backgroundcolor = [uicolor colorwithpatternimage:[uiimage imagenamed:@"lines.png"]; 

then add subview textview.

[self.textview addsubview:backgroundimage]; 

good luck!


Comments

Popular posts from this blog

linux - Mailx and Gmail nss config dir -

c# - Is it possible to remove an existing registration from Autofac container builder? -

php - Mysql PK and FK char(36) vs int(10) -