UICollectionView Error in converting ios 6 to ios 7 - iphone

Here I have developed the app in IOS6, when I open the App in IOS 7 with Xcode 5 In Collectionview errors are throwing
file://localhost/Users/asaraa/Documents/IOS/Projects/Asaraa/Embassy/UI-Changed/Washington/IOS7/20130918/Mphasis/RootviewController.xib:
error: Class Unavailable: UICollectionView on iOS versions prior to 6.0
How can i resolve this error, Could any body help me please

It looks to me from this description of your error:
UICollectionView on iOS versions prior to 6.0
That you're trying to build an app that has the deployment target (the oldest OS version) set to something older than iOS 6. UICollectionView only works on devices running iOS 6 & newer OS'es. Do you have your project settings set to run this app with iOS 5 or 4?
And if you change it to iOS 6, do you get better results?

UICollectionView didn't exist before iOS 6. You could try the open source PSTCollectionView , which supports iOS 5 and aims to be a drop-in replacement.

Related

Keyboard Extension bug in iOS 10

H/W and S/W platform for development
OS X El Capitan
4 GB RAM
XCODE 6.3.2
iOS 8.3
iPhone 5, 5s, 6, 6+ and 6 after update iOS 10.0
iPad 2 with iOS 9.3
We have recently developed an iOS (iPhone) app having custom keyboard with stickers.
Stickers downloads from cloud when keyboard is initialized.
Currently its developed in iOS 8.3 version and runs on iOS all later versions except iOS 10.0 update.
After updating iPhone to iOS 10.0, it has a weired issue i.e.. it shows only bottom footer part of the keyboard and doesn't render the keyboard view that has the stickers.
Not sure whether its an iOS 10.0 bug or some other issue at API deprecation or other.
Can anybody suggest if have any idea or faced the same kind of issue.

iOS 9.1 Simulator problems

I developed an iOS app on Xcode 6.3 with iOS 8.3 .
Now I update Xcode to 7.1 with iOS 9.1 .
My app work perfectly on iPad with iOS 9.1
and all the views work perfectly in iPhone with iOS 9.1 expect one view .
With iphone 4s , 5 the problem is (lldb) with EXC_BAD_ACCESS(Code = 2 ,)
With iphone 5s , 6 , 6 plus , 6s , 6s plus no error message but the simulators hung all the time with max cpu and ram usage.
note : the implementation of view that causes the problem the same with iPad but in iPad work perfectly .
Please what the true analysis for the problem ?
There is a bug in Xcode 7.1 with UITextView , this is stupid bug.
You don't need to ensure that the UITextView holds at least 10 characters. Just adding a default of at least 10 characters to the UITextView in Interface Builder will fix the problem. Then, you can empty the UITextView using code.
this issue comes sometimes if u migrate from xcode 6 to xcode 7.. clean the code and check if the base sdk is proper.
sometimes this issue also comes in simulator. try running the app in real device.
Also, see if xcode 6 and 7 are not running simultaneously. run only one at a time.
Hope this helps u

Getting dyld: Symbol not found: _UICollectionElementKindSectionFooter when trying to run my app in ipod touch?

Hello everyone I am getting dyld: Symbol not found: _UICollectionElementKindSectionFooter
when trying to run my app in ipod touch.
Here is my xcode project setting - Deployment Target = 5.0. iPod touch OS version = 5.1. Any ideas? the project is working on a iPhone 3GS ios 6.0.
UICollectionView class (and so all constants declared for it) is available starting from iOS 6.0 only, so you cannot use it in older iOS versions.
If you still want to support iOS older than 6.0 you can use PSTCollectionView library, which copies UICollectionView functionality and interface + it uses actual UICollectionView class when your app is being run on iOS 6+

How to switch from Xcode 4.1 to 4.5 for iOS 6.0

I just moved from Xcode 4.1 to 4.5 in order to supporting IOS version 6.0.
I modified launch image as 640x1136 pixels and Base SDK is iOS 6.0.
The problem is when I launch the app it throws SIGABRT on main.m and I added exception breakpoint to get more information but It gave breakpoint 1.1 on the same line of the implementation.
However I have noticed that I got a new warning with Xcode 4.5. Warning and Code are written below. Thanks for help.
Warning:
Semantic Issue: 'CountrySettingsViewController' may not respond to 'initWithTitle'
Code:
CountrySettingViewController *countrySettingView = [[[CountrySettingViewController alloc] initWithTitle:NSLocalizedString(#"selectCountry",#"Select the country title")]retain];
I'm not yet ready to jump to xcode 4.5. - because, then a lot of old projects will have to be recompiled e.t.c.
In order to support iphone 5 display, I simply made everything autoresizing, extra checking for iphone 5 display (to set corresponding image), and added iPhone 5 splash screen image. Compiling from 4.4.1, and on iPhone 5 it will look ok.
I then copy installed application from 5.1. simulator to 6.0 simulator, and launch 6.0 simulator, to check how it will look on iPhone 5 (while I don't yet have any iPhone 5 to test).
Hope that helps.
(I have 4.4.1. sdk and 4.5. sdk installed)
But about that error -
is this "initWithTitle" function declared in .h file also? Or else other classes will not see it (even if it works).
Finally, I sorted out my problem from the following answer in link:
iPhone with iOS 6 and Xcode 4.2 issue

Storyboard apps also run on pre-iOS 5 devices?

If an app is developed using Storyboard in Xcode 4.2, can this app run in iOS 4.x devices?
No, it can't. Storyboards are only available in iOS 5.
From the UIStoryboard class reference:
Available in iOS 5.0 and later
From Converting to Storyboards Release Notes:
Storyboarding is a new way to create user interfaces for iOS applications, beginning with iOS 5 and Xcode 4.2.