Tag: ios5

XCode 4.2链接器错误库未find-lFlurryAnalytics

试图构build我的项目时出现此错误。 我有一个付费/免费版本的付费版本与同一个图书馆工作得很好。 然而,由于某些原因,免费版本与Flurry Analytics库很难一致,它与付费应用程序具有相同的文件版本。 我添加了它,通过添加>现有框架…添加其他和浏览到付费应用程序文件夹中的库。 我不知道还有什么其他的尝试我已经确保付费和免费版本之间的项目设置是相同的,我已经尝试了应对该文件在本地,我GOOGLE和谷歌search和短缺。 使用iOS 5的Xcode 4.2 提前致谢。

UINavigation Controller根视图更改

我最近遇到了故事板的一个小问题。 我有一个UINavigationController比与MainView RootViewController (这一个有所有的button导致我的应用程序的其余部分)的关系。 但是,我试图改变RootViewController以便我可以启用持久login,而不是一个UIWebviewlogin。 当我将新的Logon Form ViewController作为Root时,我的MainView上的button停止工作。 我也已经将UINavigationController设置为初始视图控制器。 有什么想法在这里做什么? 我知道我可以简单地在故事板上login屏幕并以编程方式调用它,将其设置为在布尔条件(loginDidSucceed)上前进。 不过,我很困惑为什么这种行为发生在StoryBoard上。 解决scheme推荐: 现在的Splash / Login ViewController与StoryBoard 感谢您的帮助和努力!

这个Xcode警告是什么意思? “应用程序可执行文件缺less必需的架构 ……”

当我在我的iPod touch第四代(第一个带有视网膜显示器)的Xcode 4.2中构build并运行我的iOS 5应用程序时,出现以下警告: 警告:iPhone / iPod Touch:应用程序可执行文件缺less必需的体系结构。 至less必须存在以下架构之一:armv6(-19033) 虽然它警告了一个缺less架构,该应用程序运行在我的iPod touch上。 我该怎么办才能摆脱这个警告呢? 这是我在我的构build设置中看到的。 除了armv7之外没有其他的架构可供select(我认为这是iPhone 3GS以及其他所有设备的特别之处):

startMonitoringForRegion实际上是否工作?

我一直在尝试使用startMonitoringForRegion,但遇到问题以捕获进入/退出事件。 当我在模拟器上启动应用程序并移动到我指定的位置时,我得到1个input事件,但input从未再次触发的事件。 有人可以让我知道,如果我做得对吗? test.h #import <UIKit/UIKit.h> #import <CoreLocation/CoreLocation.h> @interface EWViewController : UIViewController<CLLocationManagerDelegate> { CLLocationManager *locman; } @end test.m – (void)viewDidLoad { if(locman == nil) locman = [[CLLocationManager alloc]init]; locman.delegate = self; CLLocationCoordinate2D coord = CLLocationCoordinate2DMake(37.787359, -122.408227); CLRegion *region = [[CLRegion alloc]initCircularRegionWithCenter:coord radius:1000.0 identifier:@"SF"]; [locman startMonitoringForRegion:region desiredAccuracy:kCLLocationAccuracyKilometer]; [super viewDidLoad]; // Do any additional setup after loading […]

在iOS 5中使用不推荐的方法

我最近把我的应用程序从iOS3升级到了iOS5。 而在编译时,我有几个使用不推荐使用的方法的警告。 两个问题: 1-在使用iOS 5的iPhone中运行应用程序时会出现问题吗? 2-如果我没有更新方法,威尔苹果上传到AppStore的时候会接受这个应用程序吗?

CALayer按照从左下到右上的尺寸缩放animation

animation的另一个问题在一个图层上,使其从左下angular逐渐变大并显示出来,有点类似于graphics: ————— | | |———- | | | | | | | |—– | | | | | | ————— 我尝试了一些animation,但无法完全按照我想要的方式实现。 请build议。 目前使用以下代码来进行缩放: layer.anchorPoint = CGPointMake(1, 1); CABasicAnimation *scale = [CABasicAnimation animationWithKeyPath:@"transform.scale"]; [scale setFromValue:[NSNumber numberWithFloat:0.0f]]; [scale setToValue:[NSNumber numberWithFloat:1.0f]]; [scale setDuration:1.0f]; [scale setRemovedOnCompletion:NO]; [scale setFillMode:kCAFillModeForwards];

如何以及在哪里使用instantiateViewControllerWithIdentifier

UIStoryboard *mainStoryboard = [UIStoryboard storyboardWithName:@"MainStoryboard" bundle: nil]; MenuScreenViewController *controller = (MenuScreenViewController*)[mainStoryboard instantiateViewControllerWithIdentifier: @"<Controller ID>"]; 如果我必须确保当前视图是用标识符实例化的,我到底在哪里编写这段代码? 这意味着如果我写这个类的任何代码,它必须出现在这个viewcontroller加载? 另外,我将如何使用它? 我不想创buildmenuscreenviewcontroller的实例。 这意味着我必须说自己,但我用self.view,并没有工作。

UITextView在animation视图之后的内容偏移量偏移

我有一个UITextView是在视图的底部。 当用户点击它,我需要animation视图150px了。 我在用着: – (void)textViewDidBeginEditing:(UITextView *)textView{ 和 – (void)textViewDidEndEditing:(UITextView *)textView{ 做这个。 在iOS5上,它工作正常。 但在iOS 4.3上,当视图被animation时,这个UITextView中的内容只有几个像素。 屏幕截图: http : //cl.ly/1q3e0W2G1M000u1U3w1f 有人有类似的问题? 码: – (void)textViewDidBeginEditing:(UITextView *)textView{ if([textView.text isEqualToString:@"Placeholder text"]){ textView.text = @""; } [UIView beginAnimations:nil context:NULL]; [UIView setAnimationDelegate:self]; [UIView setAnimationDuration:0.3]; [UIView setAnimationBeginsFromCurrentState:YES]; self.view.frame = CGRectMake(self.view.frame.origin.x, (self.view.frame.origin.y – 150.0), self.view.frame.size.width, self.view.frame.size.height); [UIView commitAnimations]; } – (void)textViewDidEndEditing:(UITextView *)textView{ if([textView.text isEqualToString:@""]){ […]

SIGABRT消息仅适用于iOS5

我正面临我的应用程序的一个奇怪的崩溃,只发生在iOS5。 这个问题似乎与我的核心animation方法bellow,因为当我没有设置值为aAnimation.repeatCount或0它正在工作,但是当它旋转我使用得到SIGABRT消息错误: – [NSConcreteValue doubleValue]:无法识别的select器发送实例0x9628100当我触摸设备/模拟器屏幕。 任何帮助将不胜感激 我的观点定义 – (void)loadView { CGRect screenRect = [[UIScreen mainScreen] applicationFrame]; UIView * contentView = [[UIView alloc] initWithFrame:screenRect]; contentView.autoresizingMask = UIViewAutoresizingFlexibleWidth | UIViewAutoresizingFlexibleHeight; self.view = contentView; [contentView发布]; } 设置一个子视图 – (void)setUpPlacardView:(NSInteger)picture { //创build标牌视图 – 其init方法根据图像计算其框架 PlacardView * aPlacardView = [[PlacardView alloc] init:picture asColor:asColor]; aPlacardView.desaturation = kotucHue; self.placardView = aPlacardView; [aPlacardView发布]; […]

通过UIPageViewController中的平移手势进行部分页面curl

我想部分地显示一个视图控制器完全一样 UIModalTransitionStylePartialCurl ,而不是我想通过平移手势来curl视图的curlanimation 我的目标是获得相同的影响,就像使用UIPageViewController通过根据用户触摸拖动\curl页面(而不是滑动手势)在ViewControllers之间切换一样。 任何帮助将不胜感激。