7. VM simulated memory warning: [[uiapplication sharedapplication] _ running mmemorywarning];
8. If you cannot connect to the simulator or real machine, delete the deriveddata directory andClear Recycle Bin, You may need to restart xcode4.
1. Run is a crash. The following message is displayed in the log:
Couldn't register COM. myApp. debug with the Bootstrap Server. error: Unknown error code. this generally means that another instance of this process was already running or is hung in the debugger. program received signal: "SIGABRT ".
Solution: restart the iPhone/iPad System
2. Failed to load the image using the three20 framework. log the following prompt:
Ttdassert failed: 0 ==_queue. maxcontentlength contentlength <= _ queue. maxcontentlength
Solution: add it to appdelegate
[[Tturlrequestqueue mainqueue] setmaxcontentlength: 0];
3. after an object is dealloc, its pointer still exists, but the memory to which it is directed is too empty. In order to prevent the bad access problem when the object is determined to be nil elsewhere, you should immediately write an object = nil;
4. The tintcolor of uinavigationbar has changed, and the background color remains unchanged. solution:
@ Interface uinavigationcontroller (refreshbackitem)
-(Void) refreshbackitem;
@ End
@ Implementation uinavigationcontroller (refreshbackitem)
-(Void) refreshbackitem
{
Uinavigationbar * bar = self. navigationbar;
Uinavigationitem * backitem = bar. backitem;
Nsstring * Title = [backitem title];
Backitem. Title = @"";
Backitem. Title = title;
}
@ End
5. Clear the notification center.ProgramMessage:
[Application cancelalllocalconfigurications];
[Application setapplicationiconbadgenumber: 0];
6. -(Bool) isipad
{
Return[[Self model] isw.tostring:@"IPad Simulator"] | [[Self platform] rangeofstring:@"IPad"]. Location =0;
}
-(Bool) isretinadisplay
{
Return([[Uiscreen mainscreen] respondstoselector: @ selector (scale)] = Yes & [[uiscreen mainscreen] scale] =2.00);
}
-(Bool) isnewipad
{
Return([Self isipad] & [self isretinadisplay]);
}