我正在尝试为UITextField创建自定义键盘,此inputView的背景应该是透明的,我已将视图的xib文件中的背景颜色设置为"clear color".它在iOS 6及更早版本上运行良好..但在iOS 7上它不起作用任何想法我怎样才能使它工作?我希望它完全透明
我开发一个iPhone应用程序,我希望能够列出谁连接到我的应用程序和访问他们的电子邮件,如果他们已经给予我到他们的电子邮件应用程序访问用户的好友.
这是我用来打开Facebook会话的代码:
- (BOOL)openSessionWithAllowLoginUI:(BOOL)allowLoginUI {
NSArray *permissions = [[NSArray alloc] initWithObjects:
@"email",
nil];
return [FBSession openActiveSessionWithReadPermissions:permissions
allowLoginUI:allowLoginUI
completionHandler:^(FBSession *session,
FBSessionState state,
NSError *error) {
[self sessionStateChanged:session
state:state
error:error];
}];
}
Run Code Online (Sandbox Code Playgroud)
此外,在ViewController.m中,我使用以下代码列出朋友并获取他们的电子邮件:
NSString *query =
[NSString stringWithFormat:@"SELECT name, uid, pic_small, birthday,proxied_email, contact_email , email FROM user WHERE is_app_user = 1 and uid IN (SELECT uid2 FROM friend where uid1 = %@) order by concat(first_name,last_name) asc", my_fb_uid ];
// Set up the query parameter
NSDictionary *queryParam =
[NSDictionary dictionaryWithObjectsAndKeys:query, @"q", nil];
// …Run Code Online (Sandbox Code Playgroud)