我想用我的应用程序使用Facebook.我在developer.facebook.com上看到了这个
安装XCode
安装Git
克隆GitHub存储库:
git clone git://github.com/facebook/facebook-ios-sdk.git
我已经安装了XCode和Git.克隆GitHub存储库意味着什么:
git clone git://github.com/facebook/facebook-ios-sdk.git
我该怎么做呢.
我们可以使用坐标列表创建一个LineString,如下所示:
Geometry g1 = new GeometryFactory().createLineString(coordinates);
Run Code Online (Sandbox Code Playgroud)
我们如何使用坐标列表创建多边形?
提前致谢.
我正在使用一个在线解析Feed的应用程序.当我单击刷新按钮时,需要一些时间来重新解析文件并显示其数据.当我点击刷新按钮时,我想在视图中间有一个活动指示器.并且在完成解析时该指示符应该隐藏.我正在使用此代码,但它不起作用.
- (IBAction)refreshFeed:(id)sender
{
UIActivityIndicatorView *spinner = [[UIActivityIndicatorView alloc] initWithActivityIndicatorStyle:UIActivityIndicatorViewStyleWhiteLarge];
[self.view addSubview:spinner];
[spinner startAnimating];
// parsing code code
[spinner release];
}
Run Code Online (Sandbox Code Playgroud) 我正在使用推送通知.当我收到通知时,它会附带2个按钮,查看并关闭.如果我点击查看它会打开应用程序,当我点击关闭按钮时,它什么都不做,但应用程序图标上会出现一个徽章编号.然后,当我再次打开我的应用程序时,徽章编号应该消失,但事实并非如此.如果用户点击应用图标,我该如何删除该徽章编号?感谢名单
我正在使用基于navBased的应用程序中的推送通知.在AppDelegate.m中didRegisterForRemoteNotificationsWithDeviceToken:在调用registerForRemoteNotificationTypes时不调用:代码如下所示:
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions {
[[UIApplication sharedApplication] registerForRemoteNotificationTypes:(UIRemoteNotificationTypeBadge | UIRemoteNotificationTypeSound | UIRemoteNotificationTypeAlert)];
[self.window addSubview:navigationController.view];
[self.window makeKeyAndVisible];
return YES;
}
- (void)application:(UIApplication *)application didRegisterForRemoteNotificationsWithDeviceToken:(NSData *)deviceToken {
// Get a hex string from the device token with no spaces or < >
NSLog(@"applicationDidFinishLaunchingWithOptions dev token test");
NSString *deviceTokenStr = [[[[deviceToken description]
stringByReplacingOccurrencesOfString: @"<" withString: @""]
stringByReplacingOccurrencesOfString: @">" withString: @""]
stringByReplacingOccurrencesOfString: @" " withString: @""];
NSLog(@"Device Token: %@", deviceTokenStr);
}
Run Code Online (Sandbox Code Playgroud)
我很确定配置文件不是问题所在.我发现错误:
注册时出错.错误:错误Domain = NSCocoaErrorDomain Code = 3000"为应用程序找到无效的'aps-environment'权利字符串"UserInfo = 0x115490 {NSLocalizedDescription =找不到应用程序的有效'aps-environment'权利字符串} …
我正在用TabBar制作一个应用程序.但是TabBarController不是RootViewController.在标签栏中有4个标签.其中一个选项卡是历史记录,它与显示历史记录的表格视图相关联.我想每次单击时刷新该视图,以便我可以获得更新的tableview.我怎样才能做到这一点?提前致谢.
我想在我的应用程序中添加一个像facebook一样的按钮.在developer.facebook.com中,我对此无能为力.是否可以使用facebook创建的iframe,如UIWebView中的按钮?它认为如果它可能,那么我可以在我的应用程序中添加使用该iframe的UIWebView.感谢名单.请写一些示例代码.
我正在使用我的第一个iphone应用程序,最后一部分是推送通知.它是我的第一个iPhone应用程序和第一次我处理推送通知.在开发阶段,一切正常.现在我对制作阶段有一些疑问.
我正在使用macbook pro进行开发.我刚刚安装了eclipse indigo.Google应用引擎Java SDK是1.8.2.我想在localhost上运行一个appengine项目.但我收到以下错误:
2013-08-04 13:14:03.193 java[2146:707] [Java CocoaComponent compatibility mode]: Enabled
2013-08-04 13:14:03.194 java[2146:707] [Java CocoaComponent compatibility mode]: Setting timeout for SWT to 0.100000
Usage: <dev-appserver> [options] <app directory>
Options:
--help, -h Show this help message and exit.
--server=SERVER The server to use to determine the latest
-s SERVER SDK version.
--address=ADDRESS The address of the interface on the local machine
-a ADDRESS to bind to (or 0.0.0.0 for all interfaces).
--port=PORT The port number to bind to on …Run Code Online (Sandbox Code Playgroud) 在iOS 7中,状态栏默认为透明.我正在制作一个使用标签的应用.一个标签显示一个简单的UIView.我想要白色状态栏,所以我只是将我的视图背景设置为白色并且工作正常.第二个选项卡'视图嵌入在导航控制器中.我将第二个视图的背景设置为白色.但我的状态栏变黑了.除了电池标志,我看不到任何东西.看起来像下面的图像:
简单视图状态栏:

View in Navigational Controller状态栏:

我想在我的整个应用程序中使用白色状态栏.知道为什么会发生这种情况,我该如何解决这个问题.提前致谢.