iphonexcode中的MySQL数据库
如何从MySQL数据库中显示UILabel和UIImage?我可以将应用程序与MySQL数据库连接,但我不知道如何在UILabel和UIImage视图中显示它 这是我的密码:iphonexcode中的MySQL数据库,iphone,mysql,xcode,uiimage,uilabel,Iphone,Mysql,Xcode,Uiimage,Uilabel,如何从MySQL数据库中显示UILabel和UIImage?我可以将应用程序与MySQL数据库连接,但我不知道如何在UILabel和UIImage视图中显示它 这是我的密码: NSString *strURL = [NSString stringWithformat:@"http://localhost/database/login.php?username=1234]; NSData *dataURL = [NSData dataWithContentsOfURL:[NSURL URLWit
NSString *strURL = [NSString stringWithformat:@"http://localhost/database/login.php?username=1234];
NSData *dataURL = [NSData dataWithContentsOfURL:[NSURL URLWithString:strURL]];
NSString *strResult = [[NSString alloc] initWithData:dataURL encoding:NSUTF8StringEncoding];
您无法在iOS中访问PHP脚本,因为PHP需要像Wamp/Apache这样的PHP服务器来执行PHP脚本 有关数据库交互,请参阅
如果您不想在iOS中访问PHP脚本,也可以参考核心数据,因为PHP需要像Wamp/Apache这样的PHP服务器来执行PHP脚本 有关数据库交互,请参阅
如果需要,请参阅核心数据我正在使用MAMP连接到数据库,它工作正常,我只想知道如何使用UIImage和UILabel显示数据库中的信息…我正在使用MAMP连接到数据库,它工作正常,我只是想知道如何使用UIImage和UILabel在我的数据库中显示信息。。。