我已下载applicationloader_1.3.dmg并安装在目标Macintosh HD中.
消息显示安装已成功完成.但是,ApplicationLoader应用程序不会出现在任何地方.
如何在Application->Utility文件夹中安装和获取Applicationloader应用程序?
我正在使用Mac OSX版本10.6.8.
我有一个UIPickerView.这有近200个项目,每个项目都有长文本,因此,我想调整UIPickerView的字体大小.我怎么能改变它?有可能的?谁能帮我?谢谢 !
Yuva.M
我正在学习swift,并且将日期String转换为NSDate转换为字符串.我以这种格式获取日期字符串"星期四,2015年10月22日07:45:17 +0000".我需要以MM-dd-yyyy格式显示日期.我尝试了以下代码,但它返回"null".
let dateFormatter = NSDateFormatter()
dateFormatter.dateFormat = "MM-dd-yyyy"
dateFormatter.dateStyle = NSDateFormatterStyle.MediumStyle
let dateObj = dateFormatter.dateFromString(dateString!)
print("Dateobj: \(dateObj)")
Run Code Online (Sandbox Code Playgroud)
任何人都可以帮助在哪里出错?期待着帮助.提前致谢.
嗨朋友是iphone开发的新手.我很难在右侧的UIBarbutton项目上添加徽章值.我试过但我无法解决这个问题.谁能帮我.
提前致谢!
我正在开发一个现有的iOS应用程序,我必须为这个项目编写单元测试用例.它正在Simulator 6.0中构建和运行.每当我尝试测试项目时,它都会显示以下错误消息.我无法确定准确的错误.
id: file not found: /Users/Yuva/Library/Developer/Xcode/DerivedData/FlyApp-aexukpgtbathuadgxlnm/Build/Products/Debug-iphonesimulator/FlyApp.app/FlyApp
clag: error: linker command failed with exit code 1 (use -v to see invocation)
Run Code Online (Sandbox Code Playgroud)
你能帮我解决这个链接器错误并测试应用程序吗?
我想从我的iPhone应用程序播放YouTube视频.我必须尝试使用以下代码在我的iPhone应用中播放YouTube视频,
[self playVideo:@"http://www.youtube.com/watch?v=WL2l_Q1AR_Q" frame:CGRectMake(20, 70, 280, 250)];
- (void)playVideo:(NSString *)urlString frame:(CGRect)frame
{
NSString *embedHTML = @"\
<html><head>\
<style type=\"text/css\">\
body {\
background-color: transparent;\
color: white;\
}\
</style>\
</head><body style=\"margin:0\">\
<embed id=\"yt\" src=\"%@\" type=\"application/x-shockwave-flash\" \
width=\"%0.0f\" height=\"%0.0f\"></embed>\
</body></html>";
NSString *html = [NSString stringWithFormat:embedHTML, urlString, frame.size.width, frame.size.height];
UIWebView *videoView = [[UIWebView alloc] initWithFrame:frame];
[videoView loadHTMLString:html baseURL:nil];
[self.view addSubview:videoView];
[videoView release];
NSLog(@"%@",html);
}
Run Code Online (Sandbox Code Playgroud)
但是,这段代码对我不起作用.而且我也试过MPMoviePlayerController代码是,
NSURL *fileURL = [NSURL URLWithString:@"http://www.youtube.com/watch?v=WL2l_Q1AR_Q"];
MPMoviePlayerController *moviePlayerController = [[MPMoviePlayerController alloc] initWithContentURL:fileURL];
[moviePlayerController.view setFrame:CGRectMake(0, 70, 320, 270)];
[self.view …Run Code Online (Sandbox Code Playgroud) 我对Xcode中的Auto布局约束不熟悉.我有一个像UITabBar6的底部视图UIButtons.在没有约束的情况下,我将这些按钮与每个按钮的5个空格填充对齐,每个按钮的宽度为50.现在,我试图通过使用自动布局来支持所有屏幕尺寸.
在Storyboard约束中,我为6个按钮设置了相等的宽度,每个按钮之间有60个空格.我将第一个按钮0设置为前导空格,然后将最后一个按钮0设置为尾部约束.
我想要buttons with equal width and flexible spaces所有设备尺寸的视图之间.
有人可以帮我吗?寻求帮助.提前致谢.
我从网络服务响应中获得了货币代码(例如:USD,EUR,INR).我需要显示相应货币代码的货币符号.如果货币代码是美元,我需要显示$,如果货币代码是欧元我需要显示€.我怎样才能做到这一点?请提出任何想法或示例代码来执行此操作.请帮我.提前致谢.
我从Keychain Access导出了"Apple Development IOS Push Service"证书,并将"apns-dev-cert.p12"保存在我的桌面上.我想启用Apple Push Notification我已经关注这些博客来转换apns-dev-cert.p12 to apns-dev-cert.pem终端应用,
http://bhaveshkumbhani.blogspot.in/2011/12/convert-p12-to-pem-for-apns.html
http://www.raywenderlich.com/3443/apple-push-notification-services-tutorial-part-12
Apple Document RemoteNotificationPG.pdf
Run Code Online (Sandbox Code Playgroud)
我在终端中使用过这些命令,
1.V******-Ms-iMac-2:~ c*****$ openssl pkcs12 -in apns-dev-cert.p12 -out apns-dev-cert.pem -nodes -clcerts
Response : Error opening input file apns-dev-cert.p12
Certificates.p12: No such file or directory
2.V******-Ms-iMac-2:~ c*****$ openssl pkcs12 -clcerts -nokeys -out apns-dev-cert.pem -in apns-dev-cert.p12
Response : Error opening input file apns-dev-cert.p12
Certificates.p12: No such file or directory
3.V******-Ms-iMac-2:~ c*****$ ls
All_iOS_Applications_Document.doc Pictures
AppStoreSubmissionSteps.doc Public
Desktop Sites
Documents Softwares
Downloads Untitled.txt
Dropbox …Run Code Online (Sandbox Code Playgroud) 在我的iPhone应用程序中,我有一个用于拍照的UIImagePickerController.我隐藏了所有默认的相机控件,并在UIImagePickerController中添加了带有两个按钮的UIView作为CameraOverLayView.我的应用程序始终只在横向模式下运行.相机也仅启动横向模式.现在,CameraOverlayView仅在Landscape左侧不变为Landscape to Right.当设备方向改变时,如何左右更改CameraOverlayView LandscapeMode?请帮我修理一下.这是我的应用程序中的主要问题.此代码在横向模式下保持Overlayview为Left
imgpicker.cameraOverlayView.transform = CGAffineTransformRotate(CGAffineTransformIdentity, 117.81);
Run Code Online (Sandbox Code Playgroud)
并且此代码在横向模式下保持cameraoverlayview权限GAffineTransform transform = self.view.transform;
transform = CGAffineTransformRotate(transform, (M_PI / 2.0));
imgpicker.cameraOverlayView.transform = transform;
Run Code Online (Sandbox Code Playgroud)
我在这样的UIInterfaceOrientation方法中使用了这些代码,
UIInterfaceOrientation orientation= [[UIApplication sharedApplication] statusBarOrientation];
if (orientation == UIInterfaceOrientationLandscapeLeft)
{
imgpicker.cameraOverlayView.transform = CGAffineTransformRotate(CGAffineTransformIdentity, 117.81);
}
else if (orientation == UIInterfaceOrientationLandscapeRight)
{
CGAffineTransform transform = self.view.transform;
transform = CGAffineTransformRotate(transform, (M_PI / 2.0));
imgpicker.cameraOverlayView.transform = transform;
}
Run Code Online (Sandbox Code Playgroud)
但是,这些并没有帮助我.当我左右旋转设备方向横向时,相机覆盖视图不会改变.你能解决我的问题吗?谢谢.