💄 added twitter button in settings
This commit is contained in:
parent
790b1b7f43
commit
2ea70658ea
2 changed files with 24 additions and 0 deletions
|
@ -17,4 +17,14 @@
|
||||||
waitpid(respringPid, NULL, WEXITED);
|
waitpid(respringPid, NULL, WEXITED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
- (void)openTwitter {
|
||||||
|
if ([[UIApplication sharedApplication] canOpenURL:[NSURL URLWithString:@"twitter://"]]) {
|
||||||
|
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"twitter://user?screen_name=lilyshibe"] options:@{} completionHandler:nil];
|
||||||
|
}
|
||||||
|
|
||||||
|
else {
|
||||||
|
[[UIApplication sharedApplication] openURL:[NSURL URLWithString:@"https://twitter.com/lilyshibe"]];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
@end
|
@end
|
||||||
|
|
|
@ -4,6 +4,20 @@
|
||||||
<dict>
|
<dict>
|
||||||
<key>items</key>
|
<key>items</key>
|
||||||
<array>
|
<array>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSGroupCell</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>hanahaki</string>
|
||||||
|
</dict>
|
||||||
|
<dict>
|
||||||
|
<key>cell</key>
|
||||||
|
<string>PSButtonCell</string>
|
||||||
|
<key>action</key>
|
||||||
|
<string>openTwitter</string>
|
||||||
|
<key>label</key>
|
||||||
|
<string>twitter: @lilyshibe</string>
|
||||||
|
</dict>
|
||||||
<dict>
|
<dict>
|
||||||
<key>cell</key>
|
<key>cell</key>
|
||||||
<string>PSGroupCell</string>
|
<string>PSGroupCell</string>
|
||||||
|
|
Loading…
Reference in a new issue