forked from dmorrow/ObjectiveC-Utils
-
Notifications
You must be signed in to change notification settings - Fork 0
/
UTUtils.m
25 lines (21 loc) · 780 Bytes
/
UTUtils.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
//
// UTUtils.m
// RingFinder
//
// Created by Danny Morrow on 11/15/12.
// Copyright (c) 2012 unitytheory. All rights reserved.
//
#import "UTUtils.h"
BOOL UTIsStringWithAnyText(id object)
{
return [object isKindOfClass:[NSString class]] && [(NSString*)object length] > 0;
}
///////////////////////////////////////////////////////////////////////////////////////////////////
void UTAlertNoTitle(NSString* message) {
UIAlertView* alert = [[UIAlertView alloc] initWithTitle:nil
message:message
delegate:nil
cancelButtonTitle:@"OK"
otherButtonTitles:nil];
[alert show];
}