有什么方法可以使用api for facebook检索我朋友的办理登机手续吗?我将开发一个iPhone应用程序,我需要经度和纬度.
您好我正在使用ASIHTTPRequest向服务器发送一些值.所有工作都很好,直到昨天requestFinished没有工作.(当应用程序在服务器上发送请求时,活动指示符和添加到主视图的新视图以及请求完成时删除视图).我添加了requestFailed以测试是否失败并且我收到此错误:
[3438:207]错误域= ASIHTTPRequestErrorDomain代码= 2"请求超时"UserInfo = 0x5ad25c0
它很奇怪,因为昨天相同的代码工作正常.我确信他们没有在服务器端进行任何更改.
这是代码:
- (IBAction)convert:(id)sender{
//Get the email from the textfield
NSString *email1 = email.text;
//Save the last used email to load it on the next app launch
[[NSUserDefaults standardUserDefaults] setValue:email1 forKey:@"email"];
//Get the current URL from webview
NSString *currentURL= webView.request.URL.relativeString;
lbl.text = currentURL;
//Count the length of Label
int strL= [lbl.text length];
//The url that the requests will be send.
NSURL *url = [NSURL URLWithString:@"the website"];
//Indicator and its view are loading on the …Run Code Online (Sandbox Code Playgroud) 您好我正在尝试安装json框架.根据安装说明,我必须从我的项目中的json-framwork/classes复制所有类!我这样做了,我收到了这个错误:
ld:复制符号_OBJC_METACLASS _ $ _ SBJsonParser in /Users/user/Library/Developer/Xcode/DerivedData/testhttp-eavsbuatbfoagsgbqfnevfpjxxfc/Build/Intermediates/testhttp.build/Debug-iphonesimulator/testhttp.build/Objects-normal/i386/SBJsonParser-4254E5B76E32172 .o和/Users/user/Library/Developer/Xcode/DerivedData/testhttp-eavsbuatbfoagsgbqfnevfpjxxfc/Build/Intermediates/testhttp.build/Debug-iphonesimulator/testhttp.build/Objects-normal/i386/SBJsonParser-46310C881BFA9776.o for architecture i386 collect2:ld返回1退出状态命令/Developer/Platforms/iPhoneSimulator.platform/Developer/usr/bin/llvm-gcc-4.2失败,退出代码为1
我在这做错了什么?
您好我有这个NS对象:
@interface Checkin : NSObject {
NSString *name;
NSString *profID;
NSString *time;
NSString *lon;
NSString *lat;
NSString *country;
NSString *city;
NSString *place;
NSString *photoURL;
NSMutableArray *taggedID;
NSMutableArray *taggedName;
}
@property(nonatomic, retain)NSString *name;
@property(nonatomic, retain)NSString *profID;
@property(nonatomic, retain)NSString *time;
@property(nonatomic, retain)NSString *lon;
@property(nonatomic, retain)NSString *lat;
@property(nonatomic, retain)NSString *country;
@property(nonatomic, retain)NSString *city;
@property(nonatomic, retain)NSString *place;
@property(nonatomic, retain)NSString *photoURL;
@property(nonatomic, retain)NSMutableArray *taggedID;
@property(nonatomic, retain)NSMutableArray *taggedName;
@end
Run Code Online (Sandbox Code Playgroud)
现在我想创建一个NSMutable Array并在其中添加几个"Checkins".
当我这样做时:
Checkin *checkinsA = [[NSObject alloc] init];
NSDictionary *decodedJson = result;
NSArray *users = [decodedJson …Run Code Online (Sandbox Code Playgroud) 您好我正在尝试使此函数返回一个数组!这里出了什么问题?
-(char[10])print01:(int)int11{ //error: declared as method returning an array
char arrayT[10];
for(int i=0;i<8;i++)
{
if ((int1-n1)>=0){
arrayT[i]='1';
int1-=n1;
}
else
arrayT[i]= '0';
n1=n1/2;
}
return arrayT[]; // incompatible types in return
}
Run Code Online (Sandbox Code Playgroud)
我想这样称呼它:
char array1[10] = [self print01:(int)int1]; //error: invalid initializer
Run Code Online (Sandbox Code Playgroud)
有什么建议吗?
iphone ×5
api ×1
facebook ×1
frameworks ×1
macos ×1
nsobject ×1
objective-c ×1
sdk ×1
timeout ×1
xcode ×1