90. Profile error not found "CodeSign error:no provisioning Profile at path '/users/yourname/library/mobiledevice/ Provisioningprofiles/f87a055a-ec0d-4f19-a015-57ab09debecb.mobileprovision ' "
Select your project in Projectnavigator, using the View->version Editor, Show Version Editor (or use the button on the toolbar). Edit in the current version (that is, the Text pane on the left), search for the "F87A055A-EC0D-4F19-A015-57AB09DEBECB" string, and then all "provisioning_profile[sdk=iphoneos*" = " F87A055A-EC0D-4F19-A015-57AB09DEBECB ";" The row is deleted.
91, IOS 7, navigation bar overlap on Viewcontroller view (that is, the view moved 44 pixels)
Set the Top Bar of the navigation controller to a "Opacque ..." (opaque) type.
92. Why is the righbarbuttonitems of the navigation bar displayed in the opposite order as they were added?
The item in the Rightbarbuttonitems is added from right to left when it joins.
Let's say we add 3 buttons to Rightbarbuttonitems:
[Self.navigationitem Setrightbarbuttonitems:@[b1,b2,b3]animated:no]; The 3 buttons you see are arranged in the following order: B3,B2,B1.
93, why sometimes the OTA way to install the program will be more than a "installing ..." icon, and cannot delete the icon?
This issue only exists under IOS 7. As shown in the following:
Where the "network Assistant" is the icon that appears on the desktop when the program is installed, "Installing ..." is the icon that appears during installation, which persists after the installation is complete, and the user cannot delete it.
This is caused by inconsistencies in the Bunndle ID in the description file (. plist file) and. IPA file. Workaround, modify the bundle ID of the project to the bundle ID in the. plist file, compile the new. IPA file, and then reinstall the. IPA file on the device. The "Installing ..." icon is now removed.
94, inadvertently modified the SDK header file, Xcode reports "' Xxx.h ' hasbeen modified since the precompiled header was built"
Clean, still unable to compile, when you close Xcode, the Xcode hint file does not exist, cannot be saved automatically, and does not allow the exit. Use "Force quit ..." to close the Xcode,clean and recompile successfully.
95, IOS 7.1 in-house release cannot install app, report "Could not load Non-https manifest URL"
Place the Manifest.plist file used by the deployment on the HTTPS server and change the manifest URL from the original HTTP address to the HTTPS address.
96, how to let UIButton's image on the right side of the title?
By default, the UIButton image is on the left side of the title:
But sometimes you might want to be like this:
You need to use the Setimageedgeinsets method:
float width = _button.bounds.size.width;
[_buttonsetimageedgeinsets:uiedgeinsetsmake (0, width-_button.imageview.bounds.size.width,0, 0)];
[_buttonsettitleedgeinsets:uiedgeinsetsmake (0,-_button.imageview.bounds.size.width+5,0, 0)];
97. Modify the section header style of Table view
Please use the Willdisplayheaderview method in Uitableviewdelegate.
-(void) TableView: (UITableView *) Tableviewwilldisplayheaderview: (UIView *) View forsection: (nsinteger) Section
{
if ([Viewiskindofclass:[uitableviewheaderfooterview class]]) {
Uitableviewheaderfooterview *tableviewheaderfooterview = (Uitableviewheaderfooterview *) view;
TableViewHeaderFooterView.contentView.backgroundColor = [Uicolorclearcolor];
Tableviewheaderfooterview.textlabel.font=[uifont Systemfontofsize:13];
Tableviewheaderfooterview.textlabel.textcolor=[uicolor Blackcolor];
}
}
98. Custom Search Bar Background color
For (UIView *subview in Self.searchBar.subviews)
{
if ([Subview iskindofclass:nsclassfromstring (@ "Uisearchbarbackground")])
{
[Subview Removefromsuperview];
Break
}
}
Self.searchBar.backgroundColor = [Uicolor colorwithwhite:0.85 alpha:1];
99, AutoLayout under Uiscrollview will not scroll
Uiscrollview can only scroll if the Uiscrollview contentsize is larger than the Uiscrollview frame size.
However, due to the constraints effect, setting contentsize is often invalid, so uiscrollview is not scrollable. We can implement the Viewdidlayoutsubviews method to set the Contentsize in this method:
-(void) Viewdidlayoutsubviews {
_scrollview.contentsize=cgsizemake (_SCROLLVIEW.FRAME.SIZE.WIDTH,_SCROLLVIEW.FRAME.SIZE.HEIGHT+60);
}
100. A type "Unknown type name" appears in the header file
In fact, the frame or library in which the type resides is already referenced. For example, the error "Unknown type name Cgpoint" is present, and the Cgpoint frame coregraphics has been referenced correctly by the project.
This error is caused by a "cross-header file reference". A typical error is that a header file (for example, A.H) is included in the. pch file. The. pch file is automatically included in any. m files that are compiled. Therefore, if you want to include the A.h file in a. pch file, it is a good practice to use #ifdef__OBJC__ macros:
#ifdef __objc__
#import "A.h"
#endif
IOS Development Hundred Questions (8)