手机登陆iphone 6里的iphone app store白屏 想安装里面的程序,但是旁边没显示可以安装的按钮了?无法安装?

iOS 问题:请各位大神帮个忙,谢谢大家!小弟初学iOS,赶鸭子上架,有几个问题急需解决:
1、我已经知道可以通过plist设置成按home键退出程序后下次进入要重新启动,但是我希望在程序中打开的网页里左右手势能切换回程序之前的状态,有没可能做的到?目前是打开网页以后跟按home一样,左右切换就重新启动程序了。
2、是不是IOS6之后的App Store才支持在苹果商店里打开安装过的应用?小弟手边是一台淘汰的ipad1,App store上安装结束以后显示的只是已安装而已,但是在其他ipad上确实看到了可以在App Store启动应用。
3、在ARC开启的情况下,函数出口处是否需要对临时用的一些如字典、数组等赋值为nil以释放资源呢?
再次谢谢大家! -
请各位大神帮个忙,谢谢大家!小弟初学iOS,赶鸭子上架,有几个问题急需解决:
1、我已经知道可以通过plist设置成按home键退出程序后下次进入要重新启动,但是我希望在程序中打开的网页里左右手势能切换回程序之前的状态,有没可能做的到?目前是打开网页以后跟按home一样,左右切换就重新启动程序了。
2、是不是IOS6之后的App Store才支持在苹果商店里打开安装过的应用?小弟手边是一台淘汰的ipad1,App store上安装结束以后显示的只是已安装而已,但是在其他ipad上确实看到了可以在App Store启动应用。
3、在ARC开启的情况下,函数出口处是否需要对临时用的一些如字典、数组等赋值为nil以释放资源呢?
再次谢谢大家!
共有 16 个回答
1. If you dun set any thing, the app will be resume back to the previous status when it is go back to foreground.
2. Yes, this function will only support in iOS 6, and the maximum iOS version of iPad1 is iOS 5.1.1 only.
3. No, you are no need to handle any memory issue in arc mode. If you try to set nil, there will have memory leak.
登录后方可回复
@Code4appDev :
纠正一下第三点:
If you try to set nil, there will have memory leak.
不会产生memory leak的。
登录后方可回复
关于第一个问题,我是希望home键能退出,而左右手势能切换,这个能做的到吗?
登录后方可回复
1. UIApplicationExitsOnSuspend bool YES
2.可以的,左右手势比較煩,主要是要記下之前的状态的部份(要看情況而定)
登录后方可回复
谢谢Idiota,我说的不是自己定义手势,正常在设置里不是可以设置成多指左右拨动可以切换程序吗?我的意思是在这个切换的过程中不重新启动程序,而按home再启动时要重新启动程序,恐怕做不到吧…
登录后方可回复
我记忆中是不能?不过我不肯定
登录后方可回复
I suggest you to capture the UIWindow touch event,
When there is 4 fingers that it is touching the screen and then the applicationDidEnterBackground delegate is called immediately. Nothing to do.
The program will keep in the same after the program is resumed back to foreground.
The applicationDidEnterBackground delegate is called and there is not 4 fingers multi-touch event before. Then call exit(0);
登录后方可回复
谢谢楼上大哥的解答!太棒了!我已经实现了,几近完美!但还存在一个小缺陷:
有没有一个能包括所有页面的touches响应事件,不然每一个View都要写touchesMove等事件比较麻烦,因为每个View都不同,来自于各种类的继承,所以不好写一个统一的类。
登录后方可回复
You should create your own UIWindow class and then replace the delegate one to capture all of the touch event.
登录后方可回复
Or you can overwrite the UIApplication sendEvent function to capture:
登录后方可回复
我尝试把代码写在自定义的tableView里,但是发现tableView在上下拖动时,touchesbegan会无法响应,另外,左右拖动也需要按住较长时间才能响应,不能像固定的View那样碰到就响应,不知是什么原因,如何改进?
登录后方可回复
The UITableView is inherited from UIScrollView, and the scrolling action of the UIScrollView will block the main thread.
You can try to write your code inside this area in the touchesBegan delegate call back:
- (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event {
dispatch_async(dispatch_get_main_queue(), ^{
//Write your code here
printf("touchesBegan\n");
登录后方可回复
目前的情况是,轻点TableView立刻抬起,能响应began和end,如果要拖动,那么必须先按住1秒才触发began,然后拖动才能被检测到,否则拖动直接就关闭了。不知出发began这1秒左右延迟是哪里来的。
登录后方可回复
用异步方法没有效果……关键是为什么点到表格要过1秒才会有began响应…静态的view直接就响应了
登录后方可回复
Then how about the other UIView that add over the UITableView.
You can capture all touch event in the UIView first and the send it back to the UITableView.
登录后方可回复
I found this in the UIScrollView:
// override points for subclasses to control delivery of touch events to subviews of the scroll view
// called before touches are delivered to a subview of the scroll view. if it returns NO the touches will not be delivered to the subview
// default returns YES
- (BOOL)touchesShouldBegin:(NSSet *)touches withEvent:(UIEvent *)event inContentView:(UIView *)
登录后方可回复
登录后方可回答
耗时 0.1045 秒本文欢迎转载,转载请注明:转载自中国学网: []
用户还关注
可能有帮助本文欢迎转载,转载请注明:转载自中国学网: []
用户还关注
可能有帮助

我要回帖

更多关于 iphone app store白屏 的文章

 

随机推荐