小编Bha*_*thi的帖子

如何使用GIDSignin google登录使用GPPNative共享对话框

我正在使用GIDSignin SDK进行Google +登录,它将在应用程序内登录.但是,一旦我使用GIDSignin SDK登录,我就不会与GPP Native共享对话框共享.

收到错误:GPPNativeShareBuilderImpl open]用户必须登录才能使用本机sharebox.

share ios google-plus

5
推荐指数
0
解决办法
224
查看次数

Swift - 在数组中修剪字符串

我有一个String Array地方需要修剪每个字符串中的空格..请让我知道任何简单的方法,而不循环它们for循环.

例如:["Apple ", "Bike ", " Cat", " Dog "] 我有Array这样的.我想要修剪所有这些空间.

arrays ios swift

3
推荐指数
1
解决办法
1371
查看次数

UIToolBar背景透明

我试图把UIToolBarUINavigationBar.

   UIToolbar* tempFontSizeToolBar = [[UIToolbar alloc] initWithFrame:CGRectMake(kPaginationToolBarOriginX,kPaginationToolBarOriginY,kPaginationToolBarWidth,kPaginationToolBarHeight)];

    tempFontSizeToolBar.backgroundColor = [UIColor clearColor];

  // create the array to hold the buttons, which then gets added to the toolbar

   NSMutableArray* buttons = [[NSMutableArray alloc] init];
  [tempFontSizeToolBar setTranslucent:YES];
  UIBarButtonItem *fontSizeBarButtonItem;

  fontSizeBarButtonItem = [[UIBarButtonItem alloc]
                         initWithImage:[UIImage imageNamed:KpreviousPageIcon] style:UIBarButtonItemStylePlain target:self action:@selector(movePreviousPage:)];

  [buttons addObject:fontSizeBarButtonItem];

  [fontSizeBarButtonItem release];fontSizeBarButtonItem = nil;

  fontSizeBarButtonItem = [[UIBarButtonItem alloc]
                         initWithImage:[UIImage imageNamed:KnextpageIcon] style:UIBarButtonItemStylePlain  target:self action:@selector(moveNextPage:)];

  [buttons addObject:fontSizeBarButtonItem];

  [fontSizeBarButtonItem release];fontSizeBarButtonItem = nil;

// stick the buttons in the toolbar
  [tempFontSizeToolBar setItems:buttons animated:NO]; …
Run Code Online (Sandbox Code Playgroud)

uitoolbar uinavigationcontroller ios

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