Please do not post the same thing multiple times. The board software automatically flags certain posts as needing moderator attention. This happens the most often for new users. I'm pretty sure this is made clear at the time you attempt to post. Posting the same thing over and over again just makes that many more posts the moderators have to weed through later. This makes us sad. Don't make us sad. If your post/thread doesn't appear, just wait a while. Don't post it again. If it hasn't shown up by the next day, then you can try again. I normally go through posts in the mornings, and try to check a few times throughout the day, but I'm not here 24/7. There will typically be a significant delay before posts are approved. Just be patient.
When I put a breakpoint it does enter the function.
With UITabBar/UINavigationBar this code works perfectly.
Thanks!
I'm using a UIViewController with a UISearchBar defined in Interface Builder and available in my code with searchBar variable. My question is, where do you put this code? I guess this is in the .m file of the UIViewController but then, it won't have access to the searchBar variable from there, Xcode reports this as an error... any advice?
_____________________________________________
Becoming an iPhone apps developer, one line of code at a time.
for (id aSubview in searchBar.subviews) { if ([aSubview isKindOfClass:NSClassFromString(@\"UISearchBarBackground\")]) [aSubview removeFromSuperview]; }
Replies
The UISearchBar's BG Image comes from UISearchBarBackground class, however, I have no access to it so I couldn't overwrite its drawRect.
The solution for me is:
Along with the drawRect for only UISearchBar (as mentioned in the previous message).
Works perfectly (as I don't need the segment control).
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like AwesomeBecoming an iPhone apps developer, one line of code at a time.
My Applic
- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome- Spam
- Abuse
- Troll
0 • Off Topic Insightful Disagree Dislike Like Awesome