public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			// Perform any additional setup after loading the view, typically from a nib.
			if (this.RespondsToSelector (new Selector ("setAutomaticallyAdjustsScrollViewInsets:"))) {
				this.AutomaticallyAdjustsScrollViewInsets = false;
			}
		
			TCViewIdentity.getInstance.setObjectForKey ("TCListFavoriteViewController", this);
			TCNotificationCenter.defaultCenter.addObserver (this, MUtils.generateKeyFavorite(this), changeListFavorite);
			this.specialists = new List<SpecialistProfileInfos> ();

			loadingView = new TCLoadingOverlay (this, true, false);
			loadingView.build ();

			this.tableView.RowHeight = 115.0f;
			this.tableView.BackgroundColor = TCTheme.getInstance.getThemeColor (Theme.BackgroundBody);
			this.tableView.Source = new TCFavoriteTableViewSource (this);;

			this.resultView = TCResultView.Create ();
			this.resultView.setTextResult (TCLocalizabled.getText("TextNoDataListFavorite"));
			this.resultView.Hidden = true;
			this.resultView.Frame = new CGRect (0.0f, 0.0f, this.viewResult.Frame.Width, this.viewResult.Frame.Height);
			this.viewResult.Add (this.resultView);
		}
		public override void ViewDidLoad ()
		{
			base.ViewDidLoad ();
			
			// Perform any additional setup after loading the view, typically from a nib
			if (this.RespondsToSelector (new Selector ("setAutomaticallyAdjustsScrollViewInsets:"))) {
				this.AutomaticallyAdjustsScrollViewInsets = false;
			}

			TCGlobals.getInstance.isAllowShowAlert = true;

			TCViewIdentity.getInstance.setObjectForKey ("TCSearchSpecialistViewController", this);
			TCNotificationCenter.defaultCenter.addObserver (this, MUtils.generateKeyFavorite (this), updateFavorite);
			TCNotificationCenter.defaultCenter.addObserver (this, MUtils.generateKeySearchSpecialist (this), updateSpecialistInfo);
			TCNotificationCenter.defaultCenter.addObserver (this, MConstants.kPostUpdateNavigationBarOfSearch, setUpAgainNavigationBar);
			TCNotificationCenter.defaultCenter.addObserver (this, MConstants.kPostSearchBarEmpty, searchBarEmpty);
			TCNotificationCenter.defaultCenter.addObserver (this, MConstants.kPostSearchExpertBeginClicked, beginSearch);
		
			loadingView = new TCLoadingOverlay (this, false, true);
			loadingView.build ();

			this.searchHelper = new TCSearchHelper (this);
			this.searchHelper.Delegate = this;

			this.resultView = TCResultView.Create ();
			this.resultView.Hidden = true;
			this.resultView.Frame = new CGRect (0.0f, 0.0f, this.viewResult.Frame.Width, this.viewResult.Frame.Height);
			this.resultView.buttonDimiss ().AddTarget (dismissKeyboard, UIControlEvent.TouchUpInside);
			this.resultView.setTextResult (TCLocalizabled.getText ("TextNoResultSpecialist"));

			this.viewResult.Add (this.resultView);
			if (!MApplication.getInstance ().isLogedIn) {
				this.searchBar.BecomeFirstResponder ();	
			}
				
			specialists = new List<SpecialistProfileInfos> ();
			resetBatchSize ();

			this.searchDelegate = new TCSearchBarDelegate (this);
			this.searchBar.Delegate = this.searchDelegate;
			this.searchBar.Placeholder = TCLocalizabled.getText ("TextPlaceholderSearch");
			this.searchBar.ReturnKeyType = UIReturnKeyType.Search;
			this.tableView.Source = new TCSearchTableViewSource (this);
			this.tableView.BackgroundColor = TCTheme.getInstance.getThemeColor (Theme.BackgroundBody);
			this.tableView.RowHeight = 115.0f;

			decorateUI ();

			if (isFromHomePage && (stringSearch == null || stringSearch.Equals (""))) {
				showNoResultView ();
			} else {
				this.searchBar.Text = stringSearch;
				this.searchDelegate.SearchButtonClicked (this.searchBar);
			}

			this.currentSort = TCGlobals.getInstance.getSortTypes () [TCSortTable.currentIndexPath.Row];
		}