|
|
#101 (permalink) | |
|
Administrator
Join Date: Mar 2008
Location: Detroitish
Posts: 1,654
|
Quote:
|
|
| (Offline) |
|
|
|
#102 (permalink) |
|
Senior Member
Join Date: Aug 2006
Location: London
Posts: 227
|
Are you using asynchronous requests to get the data back? If you do it that way, and there's no response, well, there's just no response. So nothing fails, you just get no data.
If you're sending more than one request (as I did to fetch the icons), the key is to put all your connections into a dictionary so you can find out what it is you were trying to fetch in the first place when you get the data back - and also to store all the data you've received back so far (you'll need to use a CFDictionary though, rather than an NS one, if you want to use an NSURLConnection as a key). The activity indicator should be simple, if you pop one in the navigation bar. Then you just send it a startAnimating message from connection:didReceiveResponse: and then stopAnimating from connectionDidFinishLoading: I'll try and add all the remaining stuff and send you the final code tomorrow.
__________________
Twitter: http://twitter.com/ashleymills Website: ashley-mills.com iPhone Apps: ashley-mills.com/Home/apps.html |
| (Offline) |
|
|
|
#103 (permalink) | |
|
Administrator
Join Date: Mar 2008
Location: Detroitish
Posts: 1,654
|
Quote:
EDIT: Trouble tackled. Weird navigation controller linking jib jab. All fixed. Last edited by hayroob; 04-12-2009 at 07:23 PM. |
|
| (Offline) |
|
|
|
#104 (permalink) |
|
Senior Member
Join Date: Aug 2006
Location: London
Posts: 227
|
I think I've pretty much finished all on the actual Twitter view itself. I'm off to bed now, but if you need me to work on anything else, or need any help with any of it, let me know, and I'll take a look tomorrow.
Can you pop a new version on rapidshare so I can take a look at how it's hanging together? |
| (Offline) |
|
|
|
#105 (permalink) | |
|
Administrator
Join Date: Mar 2008
Location: Detroitish
Posts: 1,654
|
Quote:
|
|
| (Offline) |
|
|
|
#106 (permalink) |
|
Administrator
Join Date: Mar 2008
Location: Detroitish
Posts: 1,654
|
So heres the latest greatest
RapidShare Works well. I need to add formatting to the events with HTML in them If you jam on the update or other tweets buttons while the view is loading it crashes I haven't added any real exception handling I haven't added any activity indicators yet twitter tab will load URLs but only ones that start with http (this is easy to fix, just haven't done it) I am using a function - (void)refTweets id)sender{tweets = [[NSMutableArray alloc] initWithCapacity: 100]; iconDict = [[NSMutableDictionary alloc] init]; connections = CFDictionaryCreateMutable(kCFAllocatorDefault, 0, &kCFTypeDictionaryKeyCallBacks, &kCFTypeDictionaryValueCallBacks); [self loadURL]; } that reloads the table view and updates the tweets. Works fine, but if you jam on the button that initiates it, it crashes the app. Need to try and debounce the button or modify the app.
__________________
KATGIPHONE Donation ![]()
|
| (Offline) |
|
|
|
#108 (permalink) |
|
Senior Member
Join Date: Aug 2006
Location: London
Posts: 227
|
Here's the final code (I think) for the Twitter view:
http://files.me.com/ashleymills/rccyze Updates
If you've got a problem with user interaction when you don't want it, you could set the button.enabled = NO and then back to YES once all the updates are complete. Let me know if you need any more from me. |
| (Offline) |
|
|
|
#109 (permalink) |
|
Administrator
Join Date: Mar 2008
Location: Detroitish
Posts: 1,654
|
These are beautiful, I'll be in NY on the 15th so I'd like to talk with you about getting some of these ideas worked into the app.
Some notes until then: The live show feed doesn't need a refresh button. It checks automatically every 3 minutes. I think I would like there to be a small button to call up the play button in case the On Air feed indicator fails. I would like to see your ideas on the feedback tab. I'm not sure that there's a need to segment the events tab, but I love the icons and row segmentation. I would like to see what you would do with the event details page. That background is perfect. Thats going in for sure. |
| (Offline) |
|
![]() |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|