苹果5s用什么浏览器自带浏览器搜网页打出某些字的时候会出现以前删除的短信怎么

23412人阅读
iOS开发之实战篇(50)
在程序中调用系统自带的应用,比如我进入程序的时候,希望直接调用safar来打开一个网页,下面是一个简单的使用:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions
self.window = [[[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]] autorelease];
self.viewController = [[[ViewController alloc] initWithNibName:@&ViewController& bundle:nil] autorelease];
self.window.rootViewController = self.viewC
[self.window makeKeyAndVisible];
//调用safar打开网页
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@&/foxmin&]];
////调用app store (省略号后面加的是产品的id等一些参数)
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@&itms:///app/……&]];
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@&itms-apps:///app/ &]];
////调用电话
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@&tel://XXXXX&]];
////调用SMS
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@&sms://XXXXX&]];
////调用Remote
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@&remote://XXX&]];
return YES;
查看更多iPhone应用程序的调用和第三方应用程序的调用,可以在方案查看。下面列举部分:
Any URL starting with http:// which does not point to
is sent to Safari:
NSString *stringURL = @&/&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
&feed:// opens&&in
URLs starting with&&open up the &Maps& application automatically:
NSString *title = @&title&;
float latitude = 35.4634;
float longitude = 9.43425;
int zoom = 13;
NSString *stringURL = [NSString stringWithFormat:@&/maps?q=%@@%1.6f,%1.6f&z=%d&, title, latitude, longitude, zoom];
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
&that maps:// also opens up the Maps application.
The phone links start with &tel:& but must not contain spaces or brackets (it can contain dashes and &+& signs, though):
NSMutableString *phone = [[@&+ 12 34 567 89 01& mutableCopy] autorelease];
[phone replaceOccurrencesOfString:@& &
withString:@&&
options:NSLiteralSearch
range:NSMakeRange(0, [phone length])];
[phone replaceOccurrencesOfString:@&(&
withString:@&&
options:NSLiteralSearch
range:NSMakeRange(0, [phone length])];
[phone replaceOccurrencesOfString:@&)&
withString:@&&
options:NSLiteralSearch
range:NSMakeRange(0, [phone length])];
NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@&tel:%@&, phone]];
[[UIApplication sharedApplication] openURL:url];
To open the SMS application, just use the sms: protocol in your URL:
NSString *stringURL = @&sms:&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
You can specify a phone number, but apparently not a default text for your message:
NSString *stringURL = @&sms:+&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
The same restrictions apply as for phone URLs, regarding spaces, brackets and dashes.
These URLs launch Mail and open the compose message controller:
NSString *stringURL = @&mailto:&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
You can also provide more information, for a customized subject and body texts:
NSString *subject = @&Message subject&;
NSString *body = @&Message body&;
NSString *address = @&&;
NSString *cc = @&&;
NSString *path = [NSString stringWithFormat:@&mailto:%@?cc=%@&subject=%@&body=%@&, address, cc, subject, body];
NSURL *url = [NSURL URLWithString:[path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
[[UIApplication sharedApplication] openURL:url];
You might also omit some information:
NSString *subject = @&Message subject&;
NSString *path = [NSString stringWithFormat:@&mailto:?subject=%@&, subject];
NSURL *url = [NSURL URLWithString:[path stringByAddingPercentEscapesUsingEncoding:NSUTF8StringEncoding]];
[[UIApplication sharedApplication] openURL:url];
For more complex body texts, you might want to use the CFURLCreateStringByAddingPercentEscapes() function, as explained above in this page.
URLs starting with&&open up the &YouTube& application automatically:
NSString *stringURL = @&/watch?v=WZH30T99MaM&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
It also works with this URL (which normally brings the Flash video player used by YouTube):
NSString *stringURL = @&/v/WZH30T99MaM&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
To open up iTunes, use this URL:
NSString *stringURL = @&/WebObjects/MZStore.woa/wa/viewAlbum?i=&id=&s=143441&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
Very similar to the iTunes URLs:
NSString *stringURL = @&/WebObjects/MZStore.woa/wa/viewSoftware?id=&mt=8&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
(source:&)
NSString *stringURL = @&itms-books:&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
NSString *stringURL = @&itms-bookss:&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
Most URL schemes in this list come from&.
Launch the application:
NSString *stringURL = @&airsharing://&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
Launch the application:
NSString *stringURL = @&alocola://&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
Launch the application:
NSString *stringURL = @&appigonotebook://&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
Launch the application:
NSString *stringURL = @&appigotodo://&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
Create a new task:
NSString *template = @&appigotodo://com.example.xyzapp/import?name=%@&note=%@&due-date=%@&priority=%@&repeat=%@&;
NSString *name = @&Buy%20some%20milk&;
NSString *note = @&Stop%20on%20the%20way%20home%20from%20work.&;
NSString *dueDate = @&&;
NSString *priority = @&1&;
NSString *repeat = @&101&;
NSString *stringURL = [NSString stringWithFormat:template, name, note, dueDate, priority, repeat];
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
Launch the application and pre-populate the update field with your desired Tweet/Facebook update. Optional: Provide Duo with the custom URL and return path to your app to provide the user with a button to return to your app.
NSString *appID = @&Your Apps Name&;
NSString *updateInfo = @&The Tweet/Status Update&;
NSString *returnScheme = @&Your Apps Return URL Scheme&;
NSString *returnPath = @&Your/Apps/Return/Path&;
NSString *baseURL = @&duoxx://updateFaceTwit?&;
NSString *encodedUpdateInfo = [updateInfo stringByAddingPercentEscapesUsingEncoding:NSASCIIStringEncoding];
NSString *urlString = [NSString stringWithFormat:@&%@BLappID=%@;BLupdateInfo=%@;BLreturnScheme=%@;BLreturnPath=%@&,
baseURL, appID, encodedUpdateInfo, returnScheme, returnPath];
NSURL *url = [NSURL URLWithString:urlString];
[[UIApplication sharedApplication] openURL:url];
Launch app and add a placemark at given coordinate:
NSString *title = @&Placemark title (optional)&;
NSString *summary = @&Placemark description (optional)&;
CLLocationCoordinate2D coordinate = CLLocationCoordinate2DMake(123.0, 12.0);
title = [(id)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)title, NULL, (CFStringRef)@&;/?:@&=+$,&, kCFStringEncodingUTF8) autorelease];
summary = [(id)CFURLCreateStringByAddingPercentEscapes(NULL, (CFStringRef)summary, NULL, (CFStringRef)@&;/?:@&=+$,&, kCFStringEncodingUTF8) autorelease];
NSString *cartographerURL = [NSString stringWithFormat:@&cartographer://placemark?coordinate=%lf,%lf&title=%@&summary=%@&,
coordinate.latitude, coordinate.longitude, title, summary];
NSURL *url = [NSURL URLWithString:cartographerURL];
[[UIApplication sharedApplication] openURL:url];
Launch app and load either a KML source or a Google My Map:
NSString *sourceURL = @&http://....&;
// e.g. /maps/ms?ie=UTF8&hl=en&msa=0&msid=046bbcfdcd1f3ebf64b&z=5
// Optional:
MKCoordinateRegion region = ...;
sourceURL = [sourceURL stringByAppendingFormat:@&&ll=%lf,%lf&spn=%lf,%lf&,
region.center.latitude, region.center.longitude, region.span.latitudeDelta, region.span.longitudeDelta];
NSURL *url = [NSURL URLWithString:[sourceURL stringByReplacingOccurrencesOfString:@&http://& withString:@&cartographer://&]];
[[UIApplication sharedApplication] openURL:url];
NSString *stringURL = @&irc://irc.example.domain/roomName&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
NSString *stringURL = @&irc://irc.example.domain/Nickname@roomName&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
NSString *stringURL = @&irc://irc.example.domain/Nickname!Realname@roomName&;
NSURL *url = [NSURL URLWithString:stringURL];
[[UIApplication sharedApplication] openURL:url];
&&相关文章推荐
* 以上用户言论只代表其个人观点,不代表CSDN网站的观点或立场
访问:864595次
积分:9085
积分:9085
排名:第1912名
原创:113篇
转载:75篇
评论:99条
(2)(1)(1)(1)(1)(1)(2)(2)(1)(3)(3)(14)(7)(8)(14)(12)(20)(23)(14)(9)(19)(20)(10)中文(简体)
中文(繁體)
中文(台灣)
中文(新加坡)
中文(香港)
打开“设置”应用程序。您需要从“设置”应用程序,而不是Safari应用程序中来清除Safari的浏览历史。尽管你能够从Safari浏览器中删除浏览历史记录,但是无法移除任何自动填充信息或cookies数据。而从“设置”应用程序中删除历史记录则能确保删除所有浏览数据。
向下滑动页面,点击“Safari”。 您应该能从第五组选项中找到它。
向下滑动Safari菜单,点击“清除历史记录与网站数据”。 接着,会弹出一个窗口询问你是否确认删除操作。
如果这个选项是灰色的,您需要先禁用网站限制。返回设置菜单,选择“限制”。输入您的限制密码,然后点击“网站”。选择“所有网站”来允许清除历史记录。如果你没有限制密码,你将无法清除历史记录。
确认删除历史数据的操作。清除数据会清除你在Safari浏览器中所有的浏览历史、缓存数据、自动填充信息和所有cookies。同时,使用相同iCloud账户所登录的其它设备中的浏览历史也会一并被删除。
打开Chrome浏览器。如果你在iPhone上使用Chrome浏览器,你可以从Chrome应用程序里直接清除浏览历史。
点击菜单按钮(?),选择“设置”。 你可能需要拖动菜单才能看到它。
点击“隐私”选项。接着,会出现带有各种重置选项的新菜单。
点击“清除浏览数据”来删除历史记录。程序会询问你是否确认删除数据。
点击“清除全部”来删除所有浏览数据。这会清除你的浏览历史、缓存数据、网站数据和cookies。
点击“清除保存的自动填充表单数据”来移除自动填充信息。这会清除所有存储的登录信息和备选的填充文本。
打开电话应用程序。你可以删除通话历史记录,这样,你的最近通话列表就不会有任何电话记录了。
点击“最近通话”选项卡。接着会出现一个最近通话的列表,其中罗列了您最近拨打的和接听的电话。
点击右上角的“编辑”按钮。列表中的每条通话记录前面都会出现一个红色的减号。
点击红色的减号来删除单条记录。点击某条通话记录前面的红色减号,来删除这条通话记录。
点击“清除”按钮来一次性删除所有记录。如果您想要删除整个列表,请点击左上角的“清除”按钮。这个按钮只会在你点击“编辑”按钮后才出现。点击后,最近通话列表中所有的记录都将被删除。
打开信息应用程序。你可以使用信息应用程序来删除文字短信。
点击“编辑”按钮。它位于左上角位置。
选择你想要删除的单个对话。点击对话前面的复选框。你可以同时选择多个会话。
选中对话后,点击“删除”按钮。程序不会跟您进行再次确认,就会直接删除所有选中的对话。
更改信息历史记录的相关设置。默认情况下,信息程序会永久保存你所有的消息。你可以将保留信息的期限设置为一年或三十天,这样可以腾出手机空间、让收件箱不那么凌乱。具体操作是:
打开设置应用程序。
选择“信息”。
点击“保留信息”。
选择你想要将信息保留多长时间。当时间超过新设置的期限时,程序就会自动删除这些超时的信息。
打开设置应用程序。如果你想要摆脱iPhone键盘中添加的自动更正字典,你可以从设置应用程序中删除它们。
选择“通用”。 这会打开iPhone的常规设置选项列表。
向下滚动菜单,点击“还原”。 接着会出现各种还原选项。
点击“还原键盘字典”。 系统会询问你是否确认操作。确定后,保存的所有自定义词语都会被删除。
打开谷歌应用程序。如果你使用谷歌应用程序来进行谷歌搜索,你可以从这个应用程序中删除你的搜索历史。
点击左上角的齿轮状按钮,这会打开设置菜单。
向下滑动屏幕,点击“隐私”。 你将看到自己的活动账户。
点击“浏览”选项。“历史”分区会出现在屏幕顶端。
点击“清除本机的历史记录”,删除搜索历史。注意,这样做只能删除该应用中的搜索历史。你的搜索记录还是会被记录在谷歌账户中。
如果你想彻底清除iPhone中的内容,可以参考这一部分。这一方法会清除iPhone中的所有记录和数据,并且在结束后系统会提示你将手机设置为“新的iPhone”。
打开“设置”。如果你确定要抹掉所有内容,你需要先打开“设置”应用。
选择“通用”选项,打开通用设置。
下滑页面,找到“还原”,打开设备的还原选项页面。
点击“抹掉所有内容和设置”。系统会弹出提示,向你确认是否要彻底删除所有内容。
等待iPhone还原。这一过程需要一段时间。
设置iPhone。还原结束后,你会进入初始设置页面。你可以将它设置为“新的iPhone”,或者通过iTunes或iCloud恢复。
本页面已经被访问过99,121次。}

我要回帖

更多关于 苹果5s浏览器在哪 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信