小编Abh*_*hek的帖子

将NSString转换为Unsigned long

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)

但它没有返回正确的价值......

nsstring ios

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

更改UILabel背景颜色

我的代码是

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 uilabel ios

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

如何将图像保存到iphone模拟器4.2

我想在iphone模拟器4.2中添加图像.我用旧版本做了这个,比如在模拟器中拖动图像,然后点击图像进行保存.它起作用罚款,但同样的方法是注意工作4.2模拟器.我还手动将图像复制到Library/Applicationsuuport/iphone模拟器/ 4.2/Media/DCIM/100Apple ..请帮忙解决这个问题

iphone ios-simulator

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

适用于iphone的Facebook Graph API

检查这个Facebook GraphAPI

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

}

提前致谢

iphone facebook facebook-graph-api

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