Tag: ios6

iOS中的漫画

我正在尝试在iOS中将漫画效果应用于照片。 我search了很多东西,但发现很多东西。 我已经检查了https://github.com/BradLarson/GPUImage以获得图像的草图,以便我可以在草图上应用各种filter。 但仍然陷在它。 我已经看到这个链接也创build草图效果使用布拉德拉森GPUImage在对象C,但无法得到适当的组合。 请帮助我,如果你发现了类似的东西。 提前致谢。

使用siri进行语音到文本的转换

对于更高版本的iOS键盘到达时,单击textView或文本字段包含一个麦克风图标,进行语音到文本转换我的问题是,是否有可能使用此function,这是苹果在我的应用程序提供的语音到文本转换点击一个button,我可以做到这一点。 提前致谢

MPAVController >>没有足够的缓冲跟上

我正在使用此代码播放video。 player= [[ MPMoviePlayerViewController alloc] initWithContentURL:movieURL]; player.navigationController.navigationBar.hidden = YES; player.moviePlayer.scalingMode = MPMovieScalingModeAspectFit; player.moviePlayer.controlStyle = MPMovieControlStyleNone; player.moviePlayer.movieSourceType = MPMovieSourceTypeFile; player.moviePlayer.fullscreen = NO; [self presentModalViewController:player animated:NO]; video播放工作完美但问题是,完成后,我得到这个结果在控制台。 [MPAVController] Autoplay: Likely to keep up or full buffer: 0 [MPAVController] Autoplay: Skipping autoplay, not enough buffered to keep up. 然后在我试图logging声音但无法录音。 任何人都可以帮我解决这个问题。

当标签被点击时返回标签

我在我的视图中有5个标签,分别标记为1,2,3,4和5.我已经启用了用户交互 ,并添加了一个轻击手势。 现在我想要的是标签被触摸的标签。 我正在做这样的事情: tapGesture=[[UITapGestureRecognizer alloc]initWithTarget:self action:@selector(tapGestureSelector)]; tapGesture.numberOfTapsRequired = 1.0; – (void)tapGestureSelector :(id)sender { // I need the tag to perform different tasks. // So that I would like to get the touched label's tag here. } 如果我不清楚我的问题,请问我。 感谢您期待的帮助。

我们可以重新启动一个应用程序在iPhone手机打开时closures

我们有一个应用程序在后台运行,每15分钟调用一次URL,但是当手机closures并打开时,我们希望自动打开应用程序并恢复调用URL,这可能吗? 这是一个应用程序,当网站内容已经被pipe理员更改时,给用户一个本地通知:网站内容已经改变,这就是… 我认为这是可能的位置服务和voip,但是,我们这样做之前的条件是什么,以及如何做到这一点? 任何帮助将不胜感激,在此先感谢…

肖像video到风景

我知道像这样的问题可能已经在那里,但为了像我这样的人,我会继续问 我有一个应用程序设置为只允许纵向定位,但是这个设置会影响我的video,因为我只希望video能够在横向上播放。 有没有一种方法可以添加到我的.m文件中来实现这个function? 这是我的代码; #import "BIDVideosViewController.h" @interface BIDVideosViewController () @end @implementation BIDVideosViewController @synthesize moviePlayer ; @synthesize tableList; – (id)initWithNibName:(NSString *)nibNameOrNil bundle:(NSBundle *)nibBundleOrNil { self = [super initWithNibName:nibNameOrNil bundle:nibBundleOrNil]; if (self) { // Custom initialization } return self; } – (void)viewDidLoad { [super viewDidLoad]; UITableView *table = [[UITableView alloc]initWithFrame:self.view.bounds]; [table setDelegate:self]; [table setDataSource:self]; [self.view addSubview:table]; tableList […]

UIScrollView + UIImage和缩放:不stream畅

我有视图控制器,里面,我有一个UIScrollView ,pipe理缩放,和UIImage 。 现在我用UIScrollViewDelegate委托和方法viewForZoomingInScrollView:处理缩放效果viewForZoomingInScrollView: …但是结果很差,绝对不stream畅! 这是我的代码: #import "ImageViewController.h" @interface ImageViewController () <UIScrollViewDelegate, UIActionSheetDelegate> @property (strong, nonatomic) IBOutlet UIScrollView *scrollView; @property (weak, nonatomic) IBOutlet UIImageView *imageView; @end @implementation ImageViewController – (void)viewDidLoad { [super viewDidLoad]; self.scrollView.delegate = self; self.scrollView.maximumZoomScale = 3.0; // some code } – (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView { return self.imageView; } // last update – […]

iOS6隐藏状态栏

在XCode 5中,如果检查状态栏 :在项目目标设置中启动应用程序时隐藏 。 在iOS7中,应用程序按预期工作,启动后应用程序具有可见的状态栏 不过在iOS6中,应用程序启动后隐藏了状态栏 任何build议如何使应用程序启动时隐藏状态栏,在iOS6和iOS7上工作?

如何为iOS创build新的自定义情感键盘(有点像表情符号)

我想做的是情感键盘,以便我可以在iPhone中使用。 当我search时,我发现表情符号是一个更好的想法。 短暂的,我想制作应用程序,这将是键盘,可以在任何地方使用信使。 任何想法/投入如何继续创build像表情符号应用程序?

在图像尺寸缩小的同时显示HUD

我有一个应用程序,用户使用相机拍照,然后select使用照片。 以下方法被调用: – (void)imagePickerController:(UIImagePickerController *)picker didFinishPickingMediaWithInfo:(NSDictionary *)info 在这个方法中,我检查图像的NSData长度,如果数据(Kb)大小太大,则重新调整实际图像大小,然后再次检查。 这样我只能缩小量以保持最高的质量/尺寸的图像,而不是一个特定的大小w / h。 问题我正在尝试向用户显示HUD,同时发生“图像缩放”。 HUD目前没有显示,这是我所尝试过的。 // Check if the image size is too large if ((imageData.length/1024) >= 1024) { MBProgressHUD *HUD = [MBProgressHUD showHUDAddedTo:self.view animated:YES]; HUD.dimBackground = YES; HUD.labelText = NSLocalizedString(@"HUDHomeLoadingTableData", @"Home View Controller – Loading Table Data"); HUD.removeFromSuperViewOnHide = YES; while ((imageData.length/1024) >= 1024) { NSLog(@"While […]