tags:

views:

22

answers:

1

HI all, i hv an alert view for twitter posting. Alert view has 2 button and a textfeild send and cancel

i want to disable send button,until user fills the message box(i.e textfeild). like,empty field kind of validation.

so,how can i disable send button??

regards shishir

+1  A: 

This is not possible with the current SDK. You will have to create a custom view to take the user's input. The fact you are adding a textfield to the UIAlertView is itself unsupported and could break in any future SDK anyway.

I would suggest you create a custom view and if you still want it to look like a UIAlertView you can do this with appropriate images and custom buttons.

Mike Weller
dats a good idea...i already done something like dat,so it wont be handy .thanks mikeregards
shishir.bobby