Skip to main content

Posts

Showing posts from June, 2016

Detect url from string and want it highlight?

Take IBOutlet for TextField ,  Button and Lable: TextField:  To take input from user Label: To show output to user Button : To Convert from string to Attributed string with highlighting HTTP string as a URL. Code: @interface ViewController () @property (weak, nonatomic) IBOutlet UITextField *textField; @property (weak, nonatomic) IBOutlet UILabel *label; -(IBAction)click:(id)sender; @end @implementation ViewController - (void)viewDidLoad {     [super viewDidLoad];        // Do any additional setup after loading the view, typically from a nib. } - (void)didReceiveMemoryWarning {     [super didReceiveMemoryWarning];     // Dispose of any resources that can be recreated. } -(IBAction)click:(id)sender {        NSMutableArray *mutableWords = [[_textField.text componentsSeparatedByString: @" "] mutableCopy];     NSLog(@"MutableWords: %@",mutableWords);     NSMutableAttributedString *resultString;     NSMutableAttributedString *attStr1,*

Crack Your iOS Interview

1. Topic Based Interview Questions https://github.com/CameronBanga/iOS-Developer-and-Designer-Interview-Questions 2. Default Interview Questions: http://www.geekinterview.com/Interview-Questions/iOS 3. General Interview Question and Answers http://abhijeetbargeios.blogspot.in/

Like us on Facebbok