Toggle navigation
Toggle navigation
This project
Loading...
Sign in
iOS
/
asi-http-request
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Pipelines
Graphs
Issues
0
Merge Requests
0
Wiki
Network
Create a new issue
Builds
Commits
Authored by
Ben Copsey
2011-05-07 14:43:49 +0100
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ef2b62d2a73bab07b4838a31d6d2e71ada2cf6f1
ef2b62d2
1 parent
49f75db4
iPhone sample: Fix error about shadowing a global declaration
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
iPhone Sample/UploadViewController.m
iPhone Sample/UploadViewController.m
View file @
ef2b62d
...
...
@@ -70,14 +70,14 @@
[[
UIApplication
sharedApplication
]
cancelAllLocalNotifications
];
// Create a new notification
UILocalNotification
*
alarm
=
[[[
UILocalNotification
alloc
]
init
]
autorelease
];
if
(
alarm
)
{
[
alarm
setFireDate
:[
NSDate
date
]];
[
alarm
setTimeZone
:[
NSTimeZone
defaultTimeZone
]];
[
alarm
setRepeatInterval
:
0
];
[
alarm
setSoundName
:
@"alarmsound.caf"
];
[
alarm
setAlertBody
:
@"Boom!
\r\n\r\n
Upload is finished!"
];
[[
UIApplication
sharedApplication
]
scheduleLocalNotification
:
alarm
];
UILocalNotification
*
notification
=
[[[
UILocalNotification
alloc
]
init
]
autorelease
];
if
(
notification
)
{
[
notification
setFireDate
:[
NSDate
date
]];
[
notification
setTimeZone
:[
NSTimeZone
defaultTimeZone
]];
[
notification
setRepeatInterval
:
0
];
[
notification
setSoundName
:
@"alarmsound.caf"
];
[
notification
setAlertBody
:
@"Boom!
\r\n\r\n
Upload is finished!"
];
[[
UIApplication
sharedApplication
]
scheduleLocalNotification
:
notification
];
}
#endif
}
...
...
Please
register
or
login
to post a comment