ios7

After updating to iOS 7 all views in iOS 6 moved up and are hidden by the navigation bar

拟墨画扇 提交于 2020-01-12 14:31:15
问题 I have updated my iPhone to iOS 7 today and recompile my app for it and all views in .xib files and on device are moved up and their upper part is hidden by the navigation bar. In my viewController I set self.edgesForExtendedLayout = UIRectEdgeNone; and on iOS 7 now everything looks good but when I compile my project with Deployment Target 6.0 and tested it on iOS 6 device all views are hidden by the navigation bar again.How can I make them to look consistently on iOS 7 and iOS 6

Thread 1: EXC_BAD_ACCESS (code=1, address=0xf00000c)

强颜欢笑 提交于 2020-01-12 13:45:15
问题 I have problem with Thread 1: EXC_BAD_ACCESS (code=1, address=0xf00000c) and I don't know how to resolve it. It appeared when I change some object in core date and save it and I try to pop this controller to parent. This error is in main() with retVal. here is some code int retVal; @try { retVal = UIApplicationMain(argc, argv, nil, NSStringFromClass([AppDelegate class])); */\ error is here** } @catch (NSException *exception) { NSLog(@"%@", [exception callStackSymbols]); @throw exception; }

How to play youtube video using URL in AVPlayer IOS?

十年热恋 提交于 2020-01-12 08:24:43
问题 I want to load video in AVPlayer using YouTube URL but it is not showing anything.Whenever i am loading from a local storage using NSBundle it is working fine.Is there is any alternative to load video or we can do something in AVPlayer. This is my code: - (void)viewDidLoad { [super viewDidLoad]; NSError *setCategoryError = nil; [[AVAudioSession sharedInstance] setCategory:AVAudioSessionCategoryPlayback error: &setCategoryError]; AVAsset *asset = [AVAsset assetWithURL:[NSURL fileURLWithPath:@

Cocos2D/iOS7: continuously increasing memory usage for boilerplate code

陌路散爱 提交于 2020-01-12 07:25:10
问题 This is what it looks like with iOS7 simulator when application is just running without any user interaction(also I'm not running any code of mine, only boilerplate Cocos2D): No such issue with 5.0->6.1. The code producing this problem is Cocos2D boilerplate code which I tried to minimize with commenting and this is the minimum code from App delegate: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { // Create the main window window

A better way to animate resizing of UIView and subviews?

半世苍凉 提交于 2020-01-12 05:13:27
问题 Example screen capture: What is a better way to animate the resizing of a UIView that includes subviews? My current method: In the screen capture, the parent UIView (orange) has a subview UILabel (yellow + autoresizing). animateWithDuration is animating the resizing of the parent UIView's frame. The problem with this method is it does not animate the resizing of the subview. It abruptly changes, where it should scale animatedly. Is explicitly animating the subview best, or is there a more

locationManager:rangingBeaconsDidFailForRegion:withError: kCLErrorDomain 16

孤人 提交于 2020-01-12 03:42:09
问题 I have read CLLocationManager kCLErrorDomain Codes? as well as Apple Docs I check to make sure ranging is available before calling startRangingBeaconsInRegion: and I am also checking if ranging is available while in the locationManager:rangingBeaconsDidFailForRegion:withError: method. Returns true both times. When I get the set of monitoredRegions, my beacon is in the set (so registering for monitoring is working). I have read that error 16 can mean ranging is unavailable, bluetooth could be

iOS 7 status bar translucency with backwards compatibility

断了今生、忘了曾经 提交于 2020-01-12 03:21:06
问题 I built my app to have a translucent navbar in iOS 6. I'd like to utilize the translucent status bar in iOS 7 and keep the app as is in iOS 6, but my content is always underneath the status bar in iOS 7, with 20px missing on the bottom. I figure that I can make the very tedious code changes that check whether the device has iOS 7 and then adjust my content accordingly, but I fear that this is going to be a lot of work. Ideally, I'd like to add 20px of padding to the top of every view

How to check the iOS SDK version used to compile .ipa or .app file

不问归期 提交于 2020-01-11 15:00:23
问题 I have just the .ipa files (I don't have the build env) without any access to the project. I'm trying to determine if they were built linking SDK 7. Is there a way or utility to check the SDK version of .ipa/.app files were compiled with? 回答1: Yes. First copy the ipa to a safe location like /tmp and unzip it: cd /tmp/ cp ~/Music/iTunes/Mobile\ Applications/APPNAME.ipa . unzip APPNAME.ipa Then use otool to see what framework versions it links: otool -L Payload/APPNAME.app/APPNAME This will

Change background color of UITableViewCell when reordering in editing mode

不打扰是莪最后的温柔 提交于 2020-01-11 09:17:30
问题 I'm working on a application containing a UITableView. The only thing which needs to be possible for users, is to reorder the contents of the UITableView. When in editing mode the background color of the tableview cells turns transparent. Is there any way of keeping the original background color of the tableview cell when it's being reordered? Solution: After a few extra searches I found the (simple) solution. By adding cell.backgroundView.backgroundcolor to the willDisplayCell method, the

Scan networks (SSID's) on iOS 7 by using private API

送分小仙女□ 提交于 2020-01-11 06:00:06
问题 Is it possible to get list of SSID's of networks around by using private API on iOS 7 Jailbroken device? I know about MobileWiFi.framework that manages WiFi functionality on iOS. (It replaces the obsolete Apple80211 framework.) Here is 4 years old answer how to use it: Accessing & Using the MobileWiFi.framework I tried to use these methods on iOS 7, but have no luck. In one of the comments of author of this solution I receive this answer: scanNetworks fails because that code is now 4 years