一旦UIPopovercontroller已经呈现在屏幕上,是否可以将其移动?
我在我的应用程序中有一个小视图,可以稍微移动,我希望UIPopoverController随身携带,而不必每次移动时重新呈现UIPopoverController.这可能吗?
我刚刚下载了适用于iOS的Facebook SDK,因为我需要能够将自定义流发布到用户的Facebook源.示例应用程序有一个名为publishStream:(id)sender的方法,它似乎为"发布流"对话框设置了自定义描述,但是当我的对话框出现时,我看到的是一个空对话框,可以开始输入.示例中的代码应用是这样的:
`SBJSON*jsonWriter = [[SBJSON new] autorelease];
NSDictionary* actionLinks = [NSArray arrayWithObjects:[NSDictionary dictionaryWithObjectsAndKeys:
@"Always Running",@"text",@"http://itsti.me/",@"href", nil], nil];
NSString *actionLinksStr = [jsonWriter stringWithObject:actionLinks];
NSDictionary* attachment = [NSDictionary dictionaryWithObjectsAndKeys:
@"a long run", @"name",
@"The Facebook Running app", @"caption",
@"it is fun", @"description",
@"http://itsti.me/", @"href", nil];
NSString *attachmentStr = [jsonWriter stringWithObject:attachment];
NSMutableDictionary* params = [NSMutableDictionary dictionaryWithObjectsAndKeys:
@"Share on Facebook", @"user_message_prompt",
actionLinksStr, @"action_links",
attachmentStr, @"attachment",
nil];
[_app.facebook dialog:@"feed"
andParams:params
andDelegate:self];`
Run Code Online (Sandbox Code Playgroud)
这段代码应该填充自定义流吗?如果是这样,为什么演示项目不适合我呢?如果没有,为了使用自定义数据填充流,我需要采取哪些步骤?
谢谢你的帮助,
我有一个水平的分页滚动视图,其中包含多个视图控制器,每个视图控制器都包含一个UIImageView.在每个视图控制器中,我将一个Tap GestureRecognizer添加到ImageView,这样我可以在点击/双击图像时执行特定操作.
但是,ImageView手势计算器似乎没有触发,因此选择器不会被调用.
我预计它可能与Imageview被置于滚动视图中有关,但我不知道从哪里开始.我需要做些什么来确保在scrollview中为每个imageview调用手势识别器吗?
谢谢你的建议.
ios ×3
iphone ×2
animation ×1
connect ×1
facebook ×1
ios4 ×1
ipad ×1
publish ×1
uiimageview ×1
uiscrollview ×1