Need to launch safari from ipad application.
Asked
Active
Viewed 3,720 times
2 Answers
6
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.apple.com"]];

Nimantha
- 6,405
- 6
- 28
- 69

iProgrammed
- 980
- 2
- 10
- 29
-
1but how will i get the object of SAFARI browser here? – Sorter Jan 24 '13 at 07:13
-
What do you mean by "object"... – iProgrammed Jan 24 '13 at 22:07
-
I want the instance of SAFARI browser which is getting open. – Sorter Jan 25 '13 at 03:28
-
So you want to know what opened in Safari and then Open it to your browser :) – iProgrammed Jan 25 '13 at 03:29
-
I don't know if that's possible. – iProgrammed Jan 25 '13 at 03:31
-
i want to remove navigation controls of SAFARI after it opened. – Sorter Jan 25 '13 at 03:44
1
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"http://www.google.com"]];

Nimantha
- 6,405
- 6
- 28
- 69

Aman Aggarwal
- 3,754
- 1
- 19
- 26