小编Pis*_*ean的帖子

这意味着克隆GitHub存储库是什么意思?

我想用我的应用程序使用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
我该怎么做呢.

iphone xcode github objective-c ios-4.2

22
推荐指数
2
解决办法
3万
查看次数

当我们有坐标列表时,如何在JTS中创建多边形?

我们可以使用坐标列表创建一个LineString,如下所示:

     Geometry g1 = new GeometryFactory().createLineString(coordinates);
Run Code Online (Sandbox Code Playgroud)

我们如何使用坐标列表创建多边形?

提前致谢.

java geometry jts computational-geometry

14
推荐指数
2
解决办法
2万
查看次数

如何以编程方式在视图中间创建活动指示器?

我正在使用一个在线解析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)

cocoa-touch objective-c uiactivityindicatorview ios

13
推荐指数
4
解决办法
6万
查看次数

如果单击推送通知中的关闭按钮,如何删除徽章编号?

我正在使用推送通知.当我收到通知时,它会附带2个按钮,查看并关闭.如果我点击查看它会打开应用程序,当我点击关闭按钮时,它什么都不做,但应用程序图标上会出现一个徽章编号.然后,当我再次打开我的应用程序时,徽章编号应该消失,但事实并非如此.如果用户点击应用图标,我该如何删除该徽章编号?感谢名单

iphone objective-c apple-push-notifications badge ios-4.2

13
推荐指数
1
解决办法
2万
查看次数

didRegisterForRemoteNotificationsWithDeviceToken:在调用registerForRemoteNotificationTypes时不调用:?

我正在使用基于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'权利字符串} …

iphone push-notification apple-push-notifications ios-4.2

10
推荐指数
2
解决办法
3万
查看次数

每次单击标签栏项时,如何刷新视图?

我正在用TabBar制作一个应用程序.但是TabBarController不是RootViewController.在标签栏中有4个标签.其中一个选项卡是历史记录,它与显示历史记录的表格视图相关联.我想每次单击时刷新该视图,以便我可以获得更新的tableview.我怎样才能做到这一点?提前致谢.

iphone cocoa-touch uitabbarcontroller uitabbar ios

10
推荐指数
2
解决办法
1万
查看次数

是否可以在UIWebView中使用iframe?

我想在我的应用程序中添加一个像facebook一样的按钮.在developer.facebook.com中,我对此无能为力.是否可以使用facebook创建的iframe,如UIWebView中的按钮?它认为如果它可能,那么我可以在我的应用程序中添加使用该iframe的UIWebView.感谢名单.请写一些示例代码.

iphone objective-c uiwebview facebook-iframe ios

9
推荐指数
2
解决办法
2万
查看次数

关于推送通知的一些问题?

我正在使用我的第一个iphone应用程序,最后一部分是推送通知.它是我的第一个iPhone应用程序和第一次我处理推送通知.在开发阶段,一切正常.现在我对制作阶段有一些疑问.

  1. 开发推送SSL证书和生产推送SSL证书之间有什么区别?我可以使用我在开发阶段使用的相同证书,还是必须购买新证书?
  2. 我在城市创建了一个用于生产推送通知的应用程序,并在我的源代码中使用了其凭据.是否足够或者我必须在城市飞艇的应用程序或我的源代码中进行更多更改?
  3. 我尝试了很多文档或教程,展示了如何将开发推送通知应用程序更改为生产推送通知应用程序.但不幸的是我找不到任何东西.你能给我发一些教程或文件来说明如何做到这一点吗?

iphone apple-push-notifications urbanairship.com ios-4.2

9
推荐指数
1
解决办法
4500
查看次数

为什么我不能在localhost上运行谷歌应用程序引擎项目?

我正在使用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)

google-app-engine swt dev-appserver

6
推荐指数
2
解决办法
1758
查看次数

当UIView嵌入iOS 7中的NavigationalViewController时,为什么状态栏会变为黑色?

在iOS 7中,状态栏默认为透明.我正在制作一个使用标签的应用.一个标签显示一个简单的UIView.我想要白色状态栏,所以我只是将我的视图背景设置为白色并且工作正常.第二个选项卡'视图嵌入在导航控制器中.我将第二个视图的背景设置为白色.但我的状态栏变黑了.除了电池标志,我看不到任何东西.看起来像下面的图像:

简单视图状态栏: 在此输入图像描述

View in Navigational Controller状态栏: 在此输入图像描述

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

statusbar uistatusbar ios7 xcode5

6
推荐指数
1
解决办法
2939
查看次数