Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #import <SpringBoard/SpringBoard.h>
- #import <CoreTelephony/CTCarrier.h>
- NSString *name;
- -(void)applicationDidFinishLaunching:(id)application {
- UIAlertView *alert = [[UIAlertView alloc] initWithTitle:@"Welcome"
- message:@"Enter Carrier Name"
- delegate:self
- cancelButtonTitle:@"Cancel"
- otherButtonTitles:nil];
- alert.alertViewStyle = UIAlertViewStylePlainTextInput;
- [alert show];
- }
- - (void)alertView:(UIAlertView *)alertView clickedButtonAtIndex:(NSInteger)buttonIndex {
- if (buttonIndex == 1) {
- name = [alertView textFieldAtIndex:0].text;
- }
- }
- - (void)setCarrierName:(id)arg1{
- arg1 = [self name];
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement