How to display badgeNumber at UIButton - iphone

I am developing iphone application, I have a home page, with buttons (icons), I have an icon for notifications, I want to display a badge number on it to determine how many new notifications user has. How I can do that for UIButton? I checked the SDK and found only UITabBarItem has badge value.

I found this helpful: http://wiki.github.com/tmdvs/TDBadgedCell/using-the-class
I used it to create my own badged button.

Related

iPhone app Button style like "add to homescreen" button

i'm new in iphone app developing,
and i just wanted to create a buttonbar like this on the left screenshot.
http://www.internet-fuer-architekten.de/files/iphone_app-simulation2.png
What kind of buttons are these?
The only buttons i can find in xcode are the "Round Rect buttons" and the "Toolbar Buttons". But both of them do differ to the buttons on the screenshot.
I saw this Buttons in many apps on my iPhone, so i thought they must be Buttons from IOS.
Does anybody know, how to get this buttons?
Thanks, guys.
The left screenshot shows an UIActionSheet. You can use this class to make similar action sheet popups, but if you'd like to use that button style outside of an UIActionSheet class, you'll have to create a custom UIButton with background image.

how to add badge to UIButton similar to Fab Apps and increment it when user clicks the button

I need to add a message like badge to UIButton and how to increment the badge on click of UIButton. Someone could help me please. Now how to customize the shape similar to the badge having 36. What control are they using.
https://itunes.apple.com/us/app/fab.com/id469422050?mt=8
Thanks..
Badge having 36 is an UIView that is added. U can add UIImage that is having shape like background and update UILabel that is 36 now.
For badge on uibutton, Refer this link

Can I hide iAds once they are tapped?

I was wondering wether I can hide iAds once they are tapped. This way, once the user taps on the ad, he can get rid of it. It will draw incentive to tapping on the ads to get rid of them. All I am doing different is hiding the iAd banner when the 'bannerViewDidFinish' method is called. Is this ok to do? I know that I can't get another ad displayed until the user restarts the app, but I am ok with that. Thanks for your help.
Have a look at rule 7.1 of the App Store Review Guidelines.
Apps that artificially increase the number of impressions or click-throughs of ads will be rejected
Imho "It will draw incentive to tapping on the ads to get rid of them." is covered by this rule.
[banner hide] or banner.hidden = YES under a touchesBegan mehod or put an invisible button over the ad or a no imaged uiiamgeview and implement pressed button or touched image

Let user reorder buttons in a UIView

I have a view in which there are 6 buttons. I want to let user reorder the position of these buttons as I can do in the screen of the iphone with the app icons. The user could drag a button to the position of another button and change its position in the view.
Facebook app has this functionality with its icons too.
Any idea?
Thanks.
What you are looking for is the Three20 Launcher.

iPhone activity modal badge

When turning off mail / calendars from an Exchange or MobileMe account in Settings, you will see a "Turning off mail..." badge appear over all view elements while the process is occurring. The badge intercepts all touch events while it's visible.
I've seen this replicated a couple of times in other apps and was wondering if anyone had any pointers on how to create and display such a badge.
What you'll probably want to do is create a transparent UIView with your badge that spans the entire screen. This way you can catch touches anywhere on the screen and redirect them to the badge (and probably just dispose of them altogether). You can use a UIActivityIndicatorView to show progress in your badge while you process.