我NSString有价值,我想转换unsigned long.我使用下面的代码
NSString *updateId = [NSString stringWithFormat:@"%@",[tweet updateId]];
NSLog(@"%@",[tweet updateId]);
unsigned long tweetId = [updateId longLongValue];
NSLog(@"ButtonPressed: .......%llu",tweetId);
Run Code Online (Sandbox Code Playgroud)
但它没有返回正确的价值......
我的代码是
UILabel *pTeamAlreadybl=[[UILabel alloc]initWithFrame:CGRectMake(110, 275,180,30)];
pTeamAlreadybl.text=@" Team already?";
pTeamAlreadybl.font=[UIFont boldSystemFontOfSize:16];
pTeamAlreadybl.textAlignment=UITextAlignmentLeft;
pTeamAlreadybl.textColor=[UIColor colorWithRed:61.0/255.0 green:61.0/255.0 blue:61.0/255.0 alpha:0.6];
pTeamAlreadybl.shadowColor = [UIColor colorWithWhite:1.0 alpha:0.7];
Run Code Online (Sandbox Code Playgroud)
如何更改标签的背景颜色?
我想在iphone模拟器4.2中添加图像.我用旧版本做了这个,比如在模拟器中拖动图像,然后点击图像进行保存.它起作用罚款,但同样的方法是注意工作4.2模拟器.我还手动将图像复制到Library/Applicationsuuport/iphone模拟器/ 4.2/Media/DCIM/100Apple ..请帮忙解决这个问题
我正在使用此Graph API.它没有每次显示登录屏幕,我启动这个应用程序.我可以在控制台上看到结果.我想知道如何在NSDictionary中保存方法的结果,以便在tableView或某些标签中显示它.方法是
-(IBAction)getMeFeedButtonPressed:(id)sender {
FbGraphResponse *fb_graph_response = [fbGraph doGraphGet:@"me/feed" withGetVars:nil];
NSLog(@"getMeFeedButtonPressed: %@", fb_graph_response.htmlResponse);
Run Code Online (Sandbox Code Playgroud)
}
提前致谢