Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 10515b6

Browse files
committed
Added AlertView to ScanViewController by default
1 parent 0c52fd6 commit 10515b6

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

iPhone Apps/rfduino/ScanViewController.m

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,20 @@ - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath
270270

271271
#pragma mark - RfduinoDiscoveryDelegate methods
272272

273+
#if TARGET_OS_IPHONE || TARGET_IPHONE_SIMULATOR
274+
275+
- (void)shouldDisplayAlertTitled:(NSString *)title messageBody:(NSString *)body
276+
{
277+
UIAlertView *alert = [[UIAlertView alloc] initWithTitle:title
278+
message:body
279+
delegate:nil
280+
cancelButtonTitle:@"OK"
281+
otherButtonTitles:nil];
282+
[alert show];
283+
}
284+
285+
#endif
286+
273287
- (void)didDiscoverRFduino:(RFduino *)rfduino
274288
{
275289
NSLog(@"didDiscoverRFduino");

0 commit comments

Comments
 (0)