我正在开发一个不在AppEngine上的应用程序,并且具有聊天功能,可以放入通信Web客户端(浏览器+ javascript)和移动客户端(ActionScript).我正在考虑在AppEngine上使用XMPP协议(然后在Google上只使用服务器进行聊天功能,并将其余部分留在我的服务器上).你告诉我这是否可能?与Channel API有什么不同?谢谢
我想在iPhone上看到全屏图像.我必须设置多少像素?iPhone 3和4的宽度和高度不同?
我的源代码:
NSString *filePath = [[NSBundle mainBundle] pathForResource:theProduct.image ofType:@"png"];
UIImageView *img = [[UIImageView alloc] initWithImage:[UIImage imageWithContentsOfFile:filePath]];
img.frame = CGRectMake(0.0, 0.0, ?, ?);
[self.view addSubview:img];
Run Code Online (Sandbox Code Playgroud)
我该怎么做而不是问号?
非常感谢,斯特凡诺