我希望在带图像的iPhone中显示小弹出视图(就像iPad中的弹出视图,但我想在iPhone中).
我怎样才能做到这一点 ?
我想在PDF中创建一个表格,其中的数据来自我的iPhone应用程序.我怎样才能做到这一点?
UIPageViewController当我改变我的方向时,我想改变我的navigationOrientation UIViewController.也就是说,当设备旋转到纵向时,我希望将navigationOrientation其更改UIPageViewControllerNavigationOrientationVertical为UIPageViewControllerNavigationOrientationHorizontal.
我尝试navigationOrientation在视图控制器的旋转时设置属性,但我发现该navigationOrientation属性是只读的.
这是我想要的图像.
景观视图

纵向视图

我该怎么办 ?
我将在我的应用程序中使用.wav音频文件.
不AVAudioPlayer支持.wav的文件格式?
以及支持哪些其他格式AVAudioPlayer?
我想知道按下以下键时将调用哪个方法.

我想在上面的按键上开始行动.
我怎么知道这是按下的?
我正在尝试在我的应用程序上实现一个地图功能.但是我想将纬度和经度从存储在核心数据中的对象传递到地图中.但是,当我启动应用程序时,我在设置对象的初始值时遇到问题.到目前为止,我已经尝试了两种不同的方式,我收到每错误"发送"双到不兼容类型的参数'身份证’.任何帮助将是非常赞赏.
NSManagedObject *room = [NSEntityDescription insertNewObjectForEntityForName:@"Room" inManagedObjectContext:context];
double myLatitude = -1.228087;
double myLongitude = 52.764397;
[room setValue:@"H001" forKey:@"code"];
[room setValue:@"This is a description" forKey:@"roomDescription"];
[room setValue:myLatitude forKey:@"longitude"];
[room setValue:myLatitude forKey:@"latitude"];
Run Code Online (Sandbox Code Playgroud) 我怎样才能在目标-C中使用PI?如果我想做的话,如何编写代码
(36.12*pi)/ 180?
我想在我的应用程序中使用UIModalPresentationFormSheet.但我正在使用导航控制器.因此,当我写下面的代码时,它没有回应我.我该怎么办 ?
[self.navigationController pushViewController:controller animated:YES];
Run Code Online (Sandbox Code Playgroud) 我UIImagePickerController在iOS 5中遇到问题.
我的应用程序是开发的,iOS4.3但现在我正在升级到iOS5.
当我尝试从照片库中选择图像时,我的应用程序崩溃了.
它在main.m文件中崩溃,EXE_BAD_ACCESS并且没有给出任何崩溃日志.
我使用以下代码UIImagePickerController从照片库中选择图像.
-(IBAction) photoLibraryAction {
if ([self isPad]) {
UIImagePickerController* picker = [[UIImagePickerController alloc] init];
picker.sourceType = UIImagePickerControllerSourceTypePhotoLibrary;
picker.delegate = self;
UIPopoverController *popover = [[UIPopoverController alloc] initWithContentViewController:picker];
self.popoverController = popover;
//[popover release];
[popoverController presentPopoverFromRect:CGRectMake(btnLibraryPic.frame.origin.x, btnLibraryPic.frame.origin.y, btnLibraryPic.frame.size.width, btnLibraryPic.frame.size.height) inView:self.view permittedArrowDirections:UIPopoverArrowDirectionLeft animated:YES];
//[picker release];
}else {
ipc=[[UIImagePickerController alloc] init];
ipc.delegate=self;
ipc.sourceType=UIImagePickerControllerSourceTypePhotoLibrary;
[self presentModalViewController:ipc animated:YES];
}
}
#pragma mark - Image Picker Delegate
-(void)imagePickerControllerDidCancel:(UIImagePickerController *)picker
{
[[picker parentViewController] dismissModalViewControllerAnimated:YES]; …Run Code Online (Sandbox Code Playgroud) 我正在尝试inapp购买.
我无法实现以下方法:
SKPayment *payment = [SKPayment paymentWithProduct:`SKProduct`];
Run Code Online (Sandbox Code Playgroud)
但在这里我不知道从哪里得到这个SKProduct对象或我必须通过哪个参数?
有什么建议吗?
objective-c ×9
iphone ×8
ios4 ×6
cocoa-touch ×3
ios ×3
ipad ×3
core-data ×1
ios5 ×1
keyboard ×1
pdf ×1