As the title: After the release of the official version of the IOS8, many of the original projects, there have been a variety of problems.
As Apple officials say, IOS8 is a big change for developers.
Here to do a collection, currently only hit a few. Record it:
1.UITableviewCell
Memory is constantly increasing. For a long time to find the reason. After a step-by-step search, found the following questions
-(void) layoutsubviews
Previously, Contentview was moved forward because IOS7 set Accessoryview. In order to keep the contentview position unchanged, in this method, the use of the
[Super Layoutsubviews]; IOS8 starts, it causes loops. So only before IOS8 execute if (need) { CGRect frmcontentview = self.contentView.frame; FrmContentview.size.width = Cgrectgetwidth (self.bounds); Self.contentView.frame = Frmcontentview; }
So a lot of places that use this can cause an infinite loop. Because changing the frame of Contentview will constantly cause layoutsubviews method.
Workaround: Use the Self.contentView.superView. And in
-(void) setselected: (BOOL) selected animated: (BOOL) animated{ [Super setselected:selected animated:animated]; [Self.contentView.superView SetBackgroundColor:self.contentView.backgroundColor]; Configure The view for the selected state}-(void) sethighlighted: (BOOL) highlighted animated: (BOOL) animated{ [ Super sethighlighted:highlighted animated:animated]; [Self.contentView.superView SetBackgroundColor:self.contentView.backgroundColor];}
So the color is more uniform. Other normal use is OK.
2.NSUserDefaults
This thing is really a pain in the egg. Clean down the project and remove the emulator app. After re-running,
The bool value found or all other, is basically the same as when not deleted. After Google, finally found IOS8 simulator, if removed the app, it seems that nsuserdefaults is not reset.
So, only reset under the simulator. After trying to find out, it really is the case. The real machine hasn't been tested yet.
3. Keyboard.
Both the TextField and the TextView can see the cursor beating. But the keyboard just doesn't come out.
Tangled up for 1 hours, for various reasons, Google for a long time. Finally, after the 2nd reset, it was found that it returned to normal. No words in a moment
4.UIAlertView
Uialertview if the set title is nil. Will find the font black, set to @ "" is OK
5. Problem with duplicate name
A new class has been created that inherits from NSObject. and declares a delegate protocol.
As a result, when used, it was found pointing to nsfilemanagerdelegate.
This is because in the IOS8 SDK, there is a delegate declaration in the NSObject class. Rename the name, solve
6.UIScrollview
Many people in the IOS6 upgrade IOS7 should have encountered Uiscrollview can not slide the problem. This is how it's done online.
To join in Viewwillappear or viewdidappear,
[Self.tableview setcontentoffset:cgpointmake (0, Cgfloat_max) Animated:yes];
But in IOS8, the discovery of such words can also cause the interface card to die.
So you can use the following methods to solve
if (Self.tableview.contentSize.height > Self.tableview.bounds.size.height) { [Self.tableview Setcontentoffset:cgpointmake (0, Self.tableview.contentSize.height) animated:yes]; }
============================================ other encountered slowly add ================================================
Here is a talk about IOS8 changes, you can look at:
Http://www.cocoachina.com/bbs/read.php?tid-217107.html
IOS8 system, App development, and problems encountered in the collection