سؤال

I have a View Controller that have a tableView inside it which has different data in it . when inside the search bar I search for a data in the table, it remove other data and just show the data i was looking for. when i click on the data it push to next view. Everything looks fine but when I go back to the view the tableview will be disappears ! The funny thing in the same app I have other similar view with similar code, but it's ok over there. anyone knows whats wrong with it ?!

هل كانت مفيدة؟

المحلول

in the didSelectRowAtIndexPath i added [mySearchBar resignFirstResponder]; which is my searchbar's textfield and it's ok now , thanks for answers guys

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top