Advertise Mobile SDKs Books Events Forum News Social Networking Support Us
Follow @iphonedevsdk on Twitter

Interface 2, Advanced iOS
Mockup & Code Gen
($9.99)

Make your own iPhone apps
and run them live!
(free)

Pic Frame Dynamo: Photo Editing
($0.99)

Abiliator
($1.99)

Want your application or service advertised on iPhone Dev SDK?

Go Back   iPhone Dev SDK Forum > iPhone SDK Development Forums > iPhone SDK Development

Reply
 
LinkBack Thread Tools Display Modes
Old 07-14-2010, 01:27 AM   #1 (permalink)
Registered Member
 
Join Date: Jul 2010
Posts: 1
jmarizdevsdk is on a distinguished road
Default Search bar dissapearing when selecting item in tableview

Hi this is my first post and I'm a beginner with iphone development and objective-c, than, if I made some mistakes I appreciate the help.

THE PROBLEM:
I have a 2000 list of names on my tableview with a search bar on top. When I tyep "A" the tableview uses a mutabledictionary to show the results removing what I don't need from the original dictionary... until now nothing strange, but when put "A" on the search bar and still with the keyboard on, and scroll the list down and select some option on the list the search bar just disappear without explanation.

MY IDEA:
may be related with:
-(NSIndexPath *)tableViewUITableView *)tableView willSelectRowAtIndexPathNSIndexPath *)indexPath {
[search resignFirstResponder];
return indexPath;
}


Maybe this just happen in the simulator, I didn't checked on the iphone/ipod anyway.
jmarizdevsdk is offline   Reply With Quote
Old 07-14-2010, 06:30 AM   #2 (permalink)
Registered Member
 
Join Date: Apr 2010
Posts: 30
Reena Mehta is on a distinguished road
Default

Quote:
Originally Posted by jmarizdevsdk View Post
Hi this is my first post and I'm a beginner with iphone development and objective-c, than, if I made some mistakes I appreciate the help.

THE PROBLEM:
I have a 2000 list of names on my tableview with a search bar on top. When I tyep "A" the tableview uses a mutabledictionary to show the results removing what I don't need from the original dictionary... until now nothing strange, but when put "A" on the search bar and still with the keyboard on, and scroll the list down and select some option on the list the search bar just disappear without explanation.

MY IDEA:
may be related with:
-(NSIndexPath *)tableViewUITableView *)tableView willSelectRowAtIndexPathNSIndexPath *)indexPath {
[search resignFirstResponder];
return indexPath;
}


Maybe this just happen in the simulator, I didn't checked on the iphone/ipod anyway.

Ya.
just remove this sentence
Code:
[search	resignFirstResponder];
Reena Mehta is offline   Reply With Quote
Reply

Bookmarks

Tags
bug, dictionary, mutabledictionary, tableview, uitableview

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



» Advertisements
» Online Users: 341
15 members and 326 guests
akphyo, alexP, appservice, cgokey, EXOPTENDAELAX, flamingliquid, guusleijsten, mariano_donati, ohmniac, Paul Slocum, PavelSea, SLIC, Sonuye857, v1n2e7t
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,653
Threads: 94,115
Posts: 402,888
Top Poster: BrianSlick (7,990)
Welcome to our newest member, ohmniac
Powered by vBadvanced CMPS v3.1.0

All times are GMT -5. The time now is 10:38 PM.
Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.3.0