分类 iOS 下的文章

Build Apps for the World

Grow your business in 155 countries and more than 40 languages, and help users around the world easily discover and download your app.

Programming Resources

With Apple technologies, it’s easy to create localized apps that perform seamlessly on iOS and macOS regardless of language. Take advantage of Auto Layout to automatically adjust the dimensions and layouts of views, extensive Unicode support to work with text from any language, the powerful text-handling technologies of Cocoa and Cocoa Touch to display, lay out, and edit text in many languages, and much more.

- 阅读剩余部分 -

Xcode 9.4 adds support for developing apps with ClassKit

昨天发布的最新Xcode版本9.4Beta增加了对ClassKit的支持

ClassKit 开发文档

About Xcode 9.4 beta

Supported Configurations

Xcode 9.4 beta requires a Mac running macOS 10.13.2 or later.

SDK Versions

Xcode 9.4 beta includes SDKs for iOS 11.4, watchOS 4.3, macOS 10.13.4, and tvOS 11.4.

9.4 版本已知的问题,不支持构建运行 tvOS 11.3

Xcode 9.4 beta does not support building and running on devices running tvOS 11.3. (39042488)

9.4版本中修复的问题

Asset Catalog
Resolved an issue that could cause progress to get stuck while editing AR assets
in an Asset Catalog. (38393995)
Resolved an issue that could cause a crash when dragging a .gif image into a
Sticker Pack in an Asset Catalog. (38820366)
Instruments
Resolved an issue where loading a saved trace could result in an empty Symbols…
panel. (38813311)

以及Swift中的一些问题

Resolved in Xcode 9.4 beta – Swift
Compiler
Swift Compiler
Swift now correctly handles the case where protocol methods or base class
methods defined in Objective-C claim to take non-null arguments of type id in their
headers, but get invoked with nil values at runtime

原文地址>>>> 传送门

Xcode9.4Beta版本苹果下载>>>>> 传送门

macOS Version 10.13.4 (17E199) Xcode Version 9.3 (9E145)

今天更新了Xcode 9.3 macOS 10.13.4

Xcode ideworkspacechecks.plist文件

Project 'iOS-SS' Enable recommended warnings
This will enael the following recommended warnings
implicit retain of 'self' within blocks
overriding Deprecated Objective-C Method

然后在项目中多了 IDEWorkspaceChecks.plist 文件 增加了32位的警告 IDEDidComputeMac32BitWarning的警告

开始弃用了32-bit的支持,请使用64-bit,其实也没有多大用。。。

苹果官方是这么描述的(下图)

IDEWorkspaceChecks
https://developer.apple.com/news/?id=01242018d

这是Xcode9.3 发行说明,英文原版 点击传送门

原文

Xcode changes for deprecation of macOS 32-bit support
Removed the 32-bit option from the Architectures build settings UI. (35517385)
Building for 32-bit architecture on macOS now emits a warning. (35709244)
Deprecation and Removal Warnings
The Core Animation instrument and template have been deprecated in Instruments. The functionality previously under "Debug Options" has moved to Xcode, under "Debug > View Debugging > Rendering". (22971414)
The OpenGL ES Analyzer Instrument is no longer supported. It has been replaced by the GPU Frame Debugger in Xcode and will be removed in a future version of Instruments. (35104029)
General

Objective-C 给字符串MD5加密

Objective-C 给字符串MD5加密

引入  #import <CommonCrypto/CommonCrypto.h> 文件

   const char *cStr = [str UTF8String];
   
   unsigned char result[16];
   CC_MD5(cStr,(CC_LONG)strlen(cStr),result);
   
   NSString *md5 = [[NSString stringWithFormat:@"%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x%02x",
                  result[0],result[1],result[2],result[3],result[4],result[5],result[6],result[7],
                     result[8],result[9],result[10],result[11],result[12],result[13],result[14],result[15]] copy];

react-native f8app 让我很尴尬

react-native f8app 让我很尴尬

No bundle URL present.

Make sure you're running a packager server or have included a .jsbundle file in your application bundle.

RCTFatal
-[RCTBatchedBridge stopLoadingWithError:]
__25-[RCTBatchedBridge start]_block_invoke_2
_dispatch_call_block_and_release
_dispatch_client_callout
_dispatch_main_queue_callback_4CF
CFRUNLOOP_IS_SERVICING_THE_MAIN_DISPATCH_QUEUE
__CFRunLoopRun
CFRunLoopRunSpecific
GSEventRunModal
UIApplicationMain
main
start
0x0














- 阅读剩余部分 -

上午的面试题,很尴尬啊。。

上午的面试题,很尴尬啊。。

如果主线程写在LoadView中会怎么样?。

AFNetWorking 中图片上传中Content-Type是什么。

瀑布流中怎么做。

iOS11有什么新功能。

xib 中怎么使固定大小的图片,让cell适应,不使用代理。