xcode

16 种原型设计工具及其使用场景

元气小坏坏 提交于 2021-02-08 19:50:16
简评: 每个人都在问:“哪个原型设计工具是最好的?!” 这是个错误的问题。正确的问法应该是:“哪个原型设计工具对我现阶段的目标是最好的?” ▎ 在开始设计原型时首先明确这四个问题: 原型设计是设计思维过程中的一个密切部分,它让我们有机会去证明我们的疯狂想法。当原型完成时,我们测试并验证我们的设想。当有新信息出现时,我们还会调整我们的设计。 但是我们如何知道我们该使用哪种工具呢?原型应该设计到哪个地步呢?无论你到原型设计的哪一个步骤,这里的四个问题你都应该注意: 你是在为手机、平板还是桌面做设计呢? 你的原型需要什么程度的保真度? 你需要多少时间完成设计? 你需要多少经验去展示? ▎六 种场景和每种场景下合适的原型设计工具 我将给你举些例子来说明我的观点,告诉你每个场景中哪个原型设计工具是最好的。我们将使用上面概述的问题为每个场景创建上下文。 一、快速的在线原型界面设计 在项目立项之初,可能会涉及多方同事协同,包括设计、产品、运营,以及团队的领导,这个时候通常会采用在线工具,方便迅速地给团队提供原型预览。 这一阶段的原型设计工具,推荐 摹客 :同时具备 强大的高保真原型设计能力 和 团队协作能力 。不仅保证了快速产出和精细设计两不误,同时满足产品经理、设计师的需要,在线工具的协作能力更是不容小觑:多人实时编辑,便捷的团队评审,工程师查看页面数据、复制代码等强大功能非常适合团队使用。

How to display a ViewController when answering a call with CallKit

廉价感情. 提交于 2021-02-08 19:23:14
问题 I have followed the following tutorial to implement CallKit within my app: https://www.raywenderlich.com/150015/callkit-tutorial-ios But I would like to go further, and display my own ViewController while the call is active. I am doing a videocall service so I would like to have my own interface. Is that possible at all? I have been trying to launch the ViewController from the method provider(CXProvider:CXAnswerCallAction) which is the one called when the user answers the call, but it seems

How to display a ViewController when answering a call with CallKit

北慕城南 提交于 2021-02-08 19:22:32
问题 I have followed the following tutorial to implement CallKit within my app: https://www.raywenderlich.com/150015/callkit-tutorial-ios But I would like to go further, and display my own ViewController while the call is active. I am doing a videocall service so I would like to have my own interface. Is that possible at all? I have been trying to launch the ViewController from the method provider(CXProvider:CXAnswerCallAction) which is the one called when the user answers the call, but it seems

Want to make UITextView react to return key

回眸只為那壹抹淺笑 提交于 2021-02-08 15:51:30
问题 I'm trying to implement a program in Xcode that's somewhat like a command line. I basically have a UITextView that can take multiple lines of text. Right now, I have a button that will make the necessary changes after the user is done entering commands, but I want to be able to have a method that gets called after the user hits the return key in the UITextView, so basically it makes changes after each command. Is it possible to do this? 回答1: If you set a delegate to the UITextView which

How to integrate Crashlytics into an iOS framework project?

怎甘沉沦 提交于 2021-02-08 15:33:47
问题 I am building a new iOS framework and would like to integrate Crashlytics in it. Using Fabric.io Mac tool I clicked on +New App and selected my iOS framework Xcode project. However, in the next screen ("Initialize the SDK") I get the following error: This Xcode project does not have any Mac or iOS targets Well yes - my framework target Bundle OS code is FMWK and not the usual AAPL of an app. My question: has anyone managed to integrate Crashlytics into an iOS framework project? Is it possible

如何快速下载并安装 iOS 模拟器

余生长醉 提交于 2021-02-08 15:28:37
相信很多朋友们一定遇到过这样的问题:国内特殊网络情况下,使用 Xcode 下载动则几个G的 iOS Simulator 大多数时候会很糟心且非常不愉快。有不少开发者可能选择网盘下载其他人上传的文件,其实我是不太敢这么做的(如果你还记得 XcodeGhost事件 的话,相信会明白我写这篇文章的初衷)。那么,有没有办法从苹果官网快速下载并安装各类模拟器呢? 当然有,今天就来教大家一个小敲门。 实现思路 找出对应 iOS Simulator 的下载路径 使用第三方多线程工具下载 将下载好的 dmg 文件移动到 Xcode 模拟器文件夹 1. 找出 iOS Simulator 的官网下载路径 在 Xcode 设置界面中 Componets 选项卡里点击开始下载对应版本的模拟器,比如我想要下载的是 iOS 11.0 Simulator(上图) ,然后 Option + 空格 唤出 Spootlight Search 并输入 Console 启动 macOS 自带的控制台。此时,系统中所有的后台情况都可以通过 Console 发现其踪影,包括 Xcode 正在下载的文件。在 Console 的右上角搜索框输入 download 过滤掉我们此刻不关心的其他事项,生剩下一堆信息中肉眼观察发现 Xcode 正在下载某个文件,那正是我们需要找到的下载地址。 2. 使用第三方多线程下载工具 上一步找到

Configuration-specific add_custom_command with Xcode generator

故事扮演 提交于 2021-02-08 14:10:16
问题 I want to create a custom command that will merge all static libraries into a fat static library using Apple's libtool command during build. I'm using Xcode generator and CMake 3.19.1. My script is like this: set( TARGET_OUTPUT_NAME ${CMAKE_BINARY_DIR}/fat-libs/${CMAKE_CFG_INTDIR}/lib${libname}.a ) add_custom_command( OUTPUT ${TARGET_OUTPUT_NAME} COMMAND /usr/bin/libtool -static -o ${TARGET_OUTPUT_NAME} $<TARGET_FILE:${libname}> $<$<CONFIG:Debug>:${all_dependencies_debug}> $<$<CONFIG:Release>

Configuration-specific add_custom_command with Xcode generator

孤街浪徒 提交于 2021-02-08 14:08:32
问题 I want to create a custom command that will merge all static libraries into a fat static library using Apple's libtool command during build. I'm using Xcode generator and CMake 3.19.1. My script is like this: set( TARGET_OUTPUT_NAME ${CMAKE_BINARY_DIR}/fat-libs/${CMAKE_CFG_INTDIR}/lib${libname}.a ) add_custom_command( OUTPUT ${TARGET_OUTPUT_NAME} COMMAND /usr/bin/libtool -static -o ${TARGET_OUTPUT_NAME} $<TARGET_FILE:${libname}> $<$<CONFIG:Debug>:${all_dependencies_debug}> $<$<CONFIG:Release>

Configuration-specific add_custom_command with Xcode generator

半腔热情 提交于 2021-02-08 14:06:24
问题 I want to create a custom command that will merge all static libraries into a fat static library using Apple's libtool command during build. I'm using Xcode generator and CMake 3.19.1. My script is like this: set( TARGET_OUTPUT_NAME ${CMAKE_BINARY_DIR}/fat-libs/${CMAKE_CFG_INTDIR}/lib${libname}.a ) add_custom_command( OUTPUT ${TARGET_OUTPUT_NAME} COMMAND /usr/bin/libtool -static -o ${TARGET_OUTPUT_NAME} $<TARGET_FILE:${libname}> $<$<CONFIG:Debug>:${all_dependencies_debug}> $<$<CONFIG:Release>

How to get the size of data present in coredata store?

你说的曾经没有我的故事 提交于 2021-02-08 12:27:12
问题 How to get the total memory size in bytes of data present in core data store.And How to get the memory size for particular rows of data. 回答1: On iOS 7 and above, older answers don't work anymore for SQLite-backed persistent stores, because of SQLite journal files. For each persistent store file you need to get the size of the SQLite file itself (e.g. Foo.sqlite ) and the sizes of the journal files (e.g. Foo.sqlite-wal and Foo.sqlite-shm ) and add the sizes to get the total. This is really