I have already posted " HERe" .
and Here actually What I need to Deserve
If I put this part of code [self loadLocationView]
in UIButton and ViewDidLoad method
, It works fine here.
but whenever I choose a location from TableVeiw and calling from a configureViewSlider
method , It gets called to the method loadLocationView
but Not updating UI.
Here I have tried so far.
-(void) configureViewSlider
{
if (_detailItem) {
Location=[_detailItem description];
//[self performSelectorOnMainThread:@selector(btnLocations:) withObject:nil waitUntilDone:false];
//[btnLocations sendActionsForControlEvents:UIControlEventTouchDown];
// [self loadLocationView];
[self performSelectorOnMainThread:@selector(loadLocationView) withObject:nil waitUntilDone:NO];
//[self loadView];
NSLog(@"Location %@", Location);
}
}
-(void) loadLocationView
{
_viewLocBangalore.frame= CGRectMake(10, 10, 303,255);
[self.view addSubview:_viewLocBangalore];
// [self.View bringSubviewToFront:_viewlocBangalore];
//[_viewLocBangalore setNeedsDisplay];
}
What else I have to do to achieve it . I have tried in all possible ways . but No use .
Please do some suggestion at least, I'm ready to approach for any way which is ready deserve my task (i..e.. I have added a UITableVieContrller which has locations , when user touches the Location , the UIView should update ).