我知道本机Facebook iPhone App的可用自定义URL方案:
Facebook iPhone应用程序支持的所有自定义URL方案是什么?
但我找不到以这种方式将URL发布到我的墙/时间线的方法,Facebook收集/显示网站标题和缩略图,就像使用touch.facebook.com/sharer.php文件一样.
我到目前为止看到的唯一方法是打电话
fb://publish/?text=www.domain.com
Run Code Online (Sandbox Code Playgroud)
但这只发布了我的时间轴的链接,而不是标题,缩略图和网站描述.
有谁知道更好的方法?
我确实有一个UIScrollView可以容纳几个的UIViewController。对于里面的元素UIViewController我使用了自动布局。现在,如果当前设备是 iPhone 4,我想更改视图约束的常量。因此我updateViewConstraints()重写UIViewControllers:
override func updateViewConstraints() {
if (self.view.frame.height == 480) {
self.imageMarginLeft.constant = 40
self.imageMarginRight.constant = 40
self.textMarginTop.constant = 10
println("updateViewConstraint \(self.imageMarginRight.constant)")
}
super.updateViewConstraints()
}
Run Code Online (Sandbox Code Playgroud)
但即使println记录了正确的新常量,更新也是不可见的。我在实施中需要改变什么?