WebKitErrorDomain error 101

后端 未结 3 691
孤独总比滥情好
孤独总比滥情好 2021-01-17 11:35

The following code produces and error of:

WebKitErrorDomain error 101 

code:

-(Void) searchBarSearchButtonClicked: (UISear         


        
3条回答
  •  轮回少年
    2021-01-17 12:27

    Make Sure that your url doesn't contain white space and new line characters.

    To do this you can use the following code:

    NSString *newString = [url stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]];
    

提交回复
热议问题