Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

iphone - How to Give action to the tab bar item -


this code tab bar

- (void)viewdidload {     [super viewdidload];     self.title = nslocalizedstring(@"crops ", @"articles");      uitabbar *tabbar = [[uitabbar alloc] initwithframe:cgrectmake(0, 376, 320, 44)];     item1 = [[uitabbaritem alloc] initwithtitle:@"typestotry" image:[uiimage imagenamed:@"crops.png"] tag:0];     item2  = [[uitabbaritem alloc] initwithtitle:@"whentoplant" image:[uiimage imagenamed:@"crops.png"] tag:1];      nsarray *items = [nsarray arraywithobjects:item1,item2,item3,item4,item5, nil];     [tabbar setitems:items animated:yes];     [tabbar setselecteditem:nil];     tabbar.delegate=self;      [self.view addsubview:tabbar];  } 

what want whenever tap on 1st tab want go particular description ,so right action.please me in this. questions may simple,but me difficult :),please new developer

thanks

hi think can add following line of code make tab bar item workable

[item1 performselectoronmainthread:@selector(yourfunction) withobject:nil waituntildone:no];  [item2 performselectoronmainthread:@selector(yourfunction) withobject:nil waituntildone:no]; 

put line @ end of -(void) didload, hope work you


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -