我正在使用GIDSignin SDK进行Google +登录,它将在应用程序内登录.但是,一旦我使用GIDSignin SDK登录,我就不会与GPP Native共享对话框共享.
收到错误:GPPNativeShareBuilderImpl open]用户必须登录才能使用本机sharebox.
我有一个String Array地方需要修剪每个字符串中的空格..请让我知道任何简单的方法,而不循环它们for循环.
例如:["Apple ", "Bike ", " Cat", " Dog "]
我有Array这样的.我想要修剪所有这些空间.
我试图把UIToolBar在UINavigationBar.
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)