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 08-08-2010, 09:04 AM   #1 (permalink)
Registered Member
 
Join Date: Apr 2010
Location: Switzerland
Posts: 12
chrisch is on a distinguished road
Default Unintrusive way to alert user of an event

I'm working on a universal app that was originally written just for the iPhone. On the iPhone I found a simple way to notify users of events (e.g., something was submitted, something was saved, etc.) in a non-intrusive way. What I do is use a UIActionSheet without buttons to present some text, and have it dismiss itself after ~1.2s. This is great for any little status updates that don't require user acknowledgment (by tapping an OK button or something). I would almost compare it to a Growl notification on OSX, where messages are displayed for a few seconds before being dismissed.

I'm now trying to do something similar with the iPad and am short on ideas. One app I like that does something is Twitteriffic, which displays notification messages underneath the toolbar. Does anyone know how they do this, or perhaps another approach to accomplish something similar?
__________________
TrackMyTour - Travel tracking for the iPhone
chrisch is offline   Reply With Quote
Old 08-08-2010, 10:08 AM   #2 (permalink)
Registered Member
 
Join Date: Jan 2009
Location: Long Beach, CA
Posts: 612
bytor99999 is on a distinguished road
Send a message via AIM to bytor99999 Send a message via Yahoo to bytor99999
Default

You could always use UINotification and the notification center. It is actually pretty easy to use. Or KVO, Key Value Observation

You have some event that sends a Notification to the notification center. You have another object there registers with the notification center for that notification. When the event sends the notification the other object receives it.
This other object could be a view controller that has a reference to a UILabel or a UILabel on a toolbar, and when it receives notification it changes the UILabel to the text.

With KVO, you call

[myObject setObserver:someObject forKey:@"propertyName" ...]

Now the property changes and the someObject gets a message to a method. The method is a delegate type method, I forget the name of the method, but you class has to implement it to receive messages when that property changes.

Also, check the apis, but there is a method that you can call that will call a method after a period of time your supply. In the method that handles the notification or observing method at the end could call this method to call another method after say a second to clear out the UILabel.

Mark
__________________
Perfect World Programming LLC
http://www.perfectworldprogramming.com

Please check out my apps.

TubeOrganizer
http://www.spritzlerapps.com/tube-organizer.html

Paper Clips
http://spritzlerapps.weebly.com/paper-clips.html
bytor99999 is offline   Reply With Quote
Old 08-08-2010, 10:55 AM   #3 (permalink)
Registered Member
 
Join Date: Apr 2010
Location: Switzerland
Posts: 12
chrisch is on a distinguished road
Default

Hi Mark,

Thanks for your reply. I'm familiar with how to generate the notifications (via UINotification or manually), but I'm more interested in the user interface side of things. The UIActionSheet solution is great since it slides up the text in the UI and then slides it off after a short elapsed time. I'm trying to figure out how to do something similar on the iPad (similar to what Twitteriffic does). Cheers.
__________________
TrackMyTour - Travel tracking for the iPhone

Last edited by chrisch; 08-08-2010 at 11:31 AM. Reason: typo
chrisch is offline   Reply With Quote
Reply

Bookmarks

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: 311
8 members and 303 guests
arash5500, HemiMG, linkmx, mediaspree, Objective Zero, Paul Slocum, stanny, Touchmint
Most users ever online was 1,387, 04-10-2012 at 04:21 AM.
» Stats
Members: 175,655
Threads: 94,116
Posts: 402,889
Top Poster: BrianSlick (7,990)
Welcome to our newest member, pungs
Powered by vBadvanced CMPS v3.1.0

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