Thursday, 19 September 2013

iOS 3+ programming a uiprogressview w/o a nib (I have theos)

iOS 3+ programming a uiprogressview w/o a nib (I have theos)

Ok, I have finally implemented FlowCover programmatically. On click of an
image in the cover flow, I would like a uiprogressview bar appear below
the image in the cover flow.
Here is my current code snippet for the area of concern:
- (void) flowCover:(FlowCoverView *)view didSelect:(int)deb {
NSLog(@"Downloading Track %d ...", deb); switch (deb % 6) {
case 0: default: system("wget -O
/some/Local/File/Name.blah
http://urlBeingDownloadedFrom.com/aFile.blah"); case
1:..... NSLog(@"Track %d Downloaded!", deb); } }
I would also like the UIProgressView to disappear when complete and alert
the user when it is fully downloaded, and if the file size is less than
the expected, alert the user of that. I know how to make alerts, so no
need to waste time saying how a UIAlertView is shown (just show "// Alert
goes here."). I am using theos for iOS, not Xcode to program. I am using
iOS 3 SDK, as I want to support a lot of users. This is for Cydia, not the
AppStore. Any help will be much appreciated!!!

No comments:

Post a Comment