tags:

views:

16

answers:

1

hi i am having text view and on it one button to move to main view ,but i am using this is not working for me..

BackButton.contentVerticalAlignment = UIControlContentVerticalAlignmentCenter; BackButton.contentHorizontalAlignment = UIControlContentHorizontalAlignmentCenter; [BackButton addTarget:self action:@selector(Back) forControlEvents:UIControlEventTouchUpInside]; [BackButton setBackgroundColor:[UIColor blackColor]]; and my method for back is -(void) back{

what should i place here to current view to dismiss......... }

A: 

Try

[self removeFromSuperview];
John Smith
how to decrease my text width in my label which dynamically gets data..
ven in Iphone world