search
HomeBackend DevelopmentPHP TutorialiOS development questions (8)
iOS development questions (8)Jan 20, 2017 am 09:44 AM

90. Profile not found error "CodeSign error: no provisioning profile at path '/Users/yourname/Library/MobileDevice/ProvisioningProfiles/F87A055A-EC0D-4F19-A015-57AB09DEBECB.mobileprovision'"
In ProjectNavigator Select your project and use View ->Version Editor -> Show Version Editor (or use the "iOS development questions (8)
" 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 change all ""PROVISIONING_PROFILE[sdk=iphoneos*]"="F87A055A-EC0D-4F19 -A015-57AB09DEBECB ";" line is deleted.
91. In iOS 7, the navigation bar overlaps the view of the ViewController (that is, the view moves up 44 pixels)
Set the Top Bar of the navigation controller to an "Opacque..." (opaque) type.
92. Why are the navigation bar's toughBarButtonItems displayed in the opposite order to when they were added?
The items in rightBarButtonItems are added from right to left when added.
Suppose we add 3 buttons to rightBarButtonItems like this:
[self.navigationItem setRightBarButtonItems:@[b1,b2,b3]animated:NO]; Then the order of the 3 buttons you see is: b3, b2,b1.
93. Why sometimes after installing a program through OTA, there will be an extra "Installing..." icon and the icon cannot be deleted?
This problem only exists under iOS 7. As shown in the figure below:


iOS development questions (8)

Among them, "Network Assistant" is the icon that appears on the desktop after the program is installed, and "Installing..." is the installation process. The icon displayed in , this icon still exists after the installation is completed, and the user cannot delete it.
This is caused by the inconsistency between the bunndle id in the installation description file (.plist file) and the .ipa file. The solution is to modify the project's Bundle ID to the Bundle ID in the .plist file, compile a new .ipa file, and then reinstall the .ipa file on the device. At this time, the "Installing..." icon can be deleted.
94. The SDK header file was unintentionally modified. Xcode reported "'xxx.h' has been modified since the precompiled header was built"
Clean. It still failed to compile. When closing Xcode, Xcode prompted that the file does not exist. , cannot save automatically, and does not allow exit. Use "Force Quit..." to close Xcode, Clean, and recompile successfully.
95. The in-house release under iOS 7.1 cannot install the app, and the report "Could not load non-https manifest URL"
Put the manifest.plist file used for deployment on the https server, and change the manifest URL by The original http address is changed to https address.
96. How to make the image of UIButton located on the right side of the title?
By default, the image of UIButton is located to the left of the title:
iOS development questions (8)
But sometimes you may want it to be like this:
iOS development questions (8)
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 the 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. Customize the background color of the search bar

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. UIScrollView will not scroll under Autolayout
Only when the ContentSize of UIScrollView is greater than the frame size of UIScrollView, UIScrollView can scroll.
However, due to the influence of constraints, setting ContentSize is often invalid, so UIScrollView cannot be scrolled. We can implement the viewDidLayoutSubviews method and set ContentSize in this method:

- (void)viewDidLayoutSubviews {
_scrollView.contentSize=CGSizeMake(_scrollView.frame.size.width,_scrollView.frame.size.height+60);
}

100. A certain type "Unknown type name" appears in the header file
In fact, the framework or library where the type is located has been Be quoted. For example, the error "Unknown type name CGPoint" occurs, and the framework CoreGraphics where CGPoint is located has been correctly referenced by the project.
This error is caused by "cross header file reference". A typical error is that a header file (e.g. a.h) is included in a .pch file. And .pch files are automatically included when compiling any .m files. Therefore, if you want to include an a.h file in a .pch file, the correct way is to use the #ifdef__OBJC__ macro:

#ifdef __OBJC__
#import "a.h"
#endif

The above is the content of iOS Development Questions (8), more related content Please pay attention to the PHP Chinese website (www.php.cn)!

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
如何在 iPhone 上更改数字格式如何在 iPhone 上更改数字格式Apr 13, 2023 pm 06:16 PM

您可以在 iOS 16 上选择哪些数字格式随着对 iOS 16.4 (beta 2) 的更改,您可以为您的 iPhone 选择三种不同的数字格式。这些格式使用空格、逗号和句点作为分隔数字中千位的符号或作为小数点。小数点是用于将值的整数部分与其小数部分分开的字符,通常由句点 (.) 或逗号 (,) 分配。千位分隔符用于将多位数的数字分成三组,通常由句点 (.)、逗号 (,) 或空格 ( ) 指定。 在最新版本的 iOS 上,您将能够应用以下任何一种数字格式作为您 iPhone 的首选选项:1,23

如何在 iPhone 上的 Always-on Display 上关闭墙纸和通知如何在 iPhone 上的 Always-on Display 上关闭墙纸和通知Apr 16, 2023 pm 11:07 PM

iOS16是Apple移动设备的重大更新,因为它不仅引入了新功能,还为iPhone14Pro和ProMax带来了独家功能。这些新款iPhone是Apple首款配备常亮显示屏的iPhone。苹果对AOD的看法略有不同,不是整个屏幕变黑,而是显示变暗,刷新率动态降低到1Hz。不用说,这并不适合世界各地的许多用户和评论者,因为大多数人会不经意地检查他们的手机,并假设这是一条通知而不是AOD。Apple似乎已经在最新版本的iOS16中认识到并纠正了这个问题,增加

Chrome 未安装在 iPad 上:3 种轻松修复它的方法Chrome 未安装在 iPad 上:3 种轻松修复它的方法Apr 14, 2023 pm 03:13 PM

浏览互联网已成为我们大多数人的第二天性,我们目前生活在一个时代,它已成为我们所做的几乎所有事情的代名词。它不仅是我们用来购物,或与亲朋好友相聚的地方,它也成为了一种宝贵的工作用具。自从COVID-19大流行开始,混合工作成为新常态以来,浏览器和通信软件已成为我们与同事之间的新纽带。而且,在我们所有流行的浏览器选择中,绝大多数用户决定使用谷歌的Chrome。现在,您不一定需要运行Microsoft支持的操作系统才能使用Chrome,因为该软件也可以在其他软件上正常运行。话虽这么说,如果您尝试在

如何在 iOS 15 中阻止电话号码如何在 iOS 15 中阻止电话号码Apr 13, 2023 am 11:37 AM

虽然不需要的电话是日常生活的一部分,但您的 iPhone 提供了一些不同的选项来使特别顽固的来电者静音。这是在iOS 15上阻止或静音不需要的电话的方法。屏蔽电话号码可以为您减轻很多压力。一旦被阻止,您将不会收到来自被阻止号码的任何呼叫的提醒。此外,呼叫者将被允许留下语音邮件,但您不会收到已留下语音邮件的通知。打开电话应用滚动到您要阻止的号码点击号码旁边的信息图标向下滚动并点按阻止此来电者点击阻止联系人您也可以在FaceTime应用程序中按照相同的步骤来阻止持续的 FaceTime 呼叫者。被屏

适用于 iOS 的微软待办通过滚动改进等进行了更新适用于 iOS 的微软待办通过滚动改进等进行了更新Apr 14, 2023 am 09:37 AM

微软待办已收到 iOS 更新,将版本升级至 2.75,并添加了一些值得注意的更改。最新版本的任务管理应用程序提供更流畅的体验。这是因为微软在最新版本的应用程序中引入了滚动改进。除此之外,最新版本还可能带有错误修复和改进。您可以在下面阅读完整的官方变更日志。微软待办 2.75 版几个月前,微软更新了它的 To Do iOS 应用程序,让用户更容易为他们的任务添加注释。它旨在为您的

iOS 16 中的 Apple Wallet 让你离抛弃你的钱包更近了一步iOS 16 中的 Apple Wallet 让你离抛弃你的钱包更近了一步Apr 14, 2023 am 08:22 AM

iOS 16 已经准备好再次推动你放弃实体钱包。对 iOS 16 所做的更改包括一些仅限于美国地区的功能,但苹果也愿意将其部分功能开放给其他平台。首先,马里兰州和亚利桑那州现在支持 Apple 的数字身份验证服务 Wallet ID。除了这两个,Apple 还表示很快还会有另外 11 个,但没有任何关于哪些州的进一步信息。钱包 ID 也可以在 Uber 等应用中使用,并且不必分享您的具体信息。例如,它可以说您已超过 21 岁,但不提供您的实际年龄。Apple Wallet 中的数字密钥也可以通过

ios是linux系统吗ios是linux系统吗Nov 19, 2021 pm 03:14 PM

ios不是linux,ios实际上是Darwin的ARM变体,源自BSD,类UNIX内核以及Apple自己的Mach内核扩展系统;这与Linux是完全不同的,Linux是一个单片内核,所有驱动程序代码和I/O工具包都是核心内核的一部分。

iOS 16.2 引入“自定义辅助功能模式”,为 iPhone 和 iPad 提供简化的体验iOS 16.2 引入“自定义辅助功能模式”,为 iPhone 和 iPad 提供简化的体验Apr 13, 2023 am 11:07 AM

苹果公司周二向开发人员发布了iOS 16.2 beta 2,因为该公司准备在 12 月向公众提供更新。正式地,它添加了新的 Freeform 协作应用程序和对 Home 应用程序的改进。在后台,9to5Mac发现 Apple 一直在开发一种新的“自定义辅助功能模式”,该模式将为 iPhone 和 iPad 提供“流线型”体验。自定义辅助功能模式这种代号为“Clarity”的新模式基本上用更精简的模式取代了 Springboard(这是 iOS 的主要界面)。该功能在当前测试版中仍对用户不可用,将

See all articles

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
2 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Repo: How To Revive Teammates
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
Hello Kitty Island Adventure: How To Get Giant Seeds
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

MantisBT

MantisBT

Mantis is an easy-to-deploy web-based defect tracking tool designed to aid in product defect tracking. It requires PHP, MySQL and a web server. Check out our demo and hosting services.

mPDF

mPDF

mPDF is a PHP library that can generate PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files "on the fly" from his website and handle different languages. It is slower than original scripts like HTML2FPDF and produces larger files when using Unicode fonts, but supports CSS styles etc. and has a lot of enhancements. Supports almost all languages, including RTL (Arabic and Hebrew) and CJK (Chinese, Japanese and Korean). Supports nested block-level elements (such as P, DIV),

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment