自定义博客皮肤VIP专享

*博客头图:

格式为PNG、JPG,宽度*高度大于1920*100像素,不超过2MB,主视觉建议放在右侧,请参照线上博客头图

请上传大于1920*100像素的图片!

博客底图:

图片格式为PNG、JPG,不超过1MB,可上下左右平铺至整个背景

栏目图:

图片格式为PNG、JPG,图片宽度*高度为300*38像素,不超过0.5MB

主标题颜色:

RGB颜色,例如:#AFAFAF

Hover:

RGB颜色,例如:#AFAFAF

副标题颜色:

RGB颜色,例如:#AFAFAF

自定义博客皮肤

-+
  • 博客(2)
  • 资源 (6)
  • 收藏
  • 关注

转载 iOS RunLoop详解 (转)

iOS RunLoop详解Runloop 是和线程紧密相关的一个基础组件,是很多线程有关功能的幕后功臣。尽管在平常使用中几乎不太会直接用到,理解 Runloop 有利于我们更加深入地理解 iOS 的多线程模型。本文从如下几个方面理解RunLoop的相关知识点。RunLoop概念RunLoop实现RunLoop运行RunLoop应用RunLoop概念RunLoop介绍RunLoop...

2019-03-25 10:52:36 185

原创 一些 iOS官方Demo(适合新人)

UICatalog ,包含了绝大部分常用的UI,入门必备良药。NavBar,Navigation Bar的演示Demo,包括如何自定义UI、加长Navigation Bar等,特别是如何处理自定义返回按钮的同时不丢失滑动返回手势。很多APP自定义了返回按钮导致滑动返回手势失效,就再自定义了一个滑动返回的手势,做不好的话,体验就…Tabster ,iOS的Tab真的是相当成功的交互设计,简单高效...

2019-03-25 10:49:16 2695

QuickTime File Format Specification

The QuickTime File Format (QTFF) is designed to accommodate the many kinds of data that need to be stored in order to work with digital multimedia. The QTFF is an ideal format for the exchange of digital media between devices, applications, and operating systems because it can be used to describe al

2020-12-17

Advanced-Swift

Swift is a great language for systems programming, but also lends itself for very high-level programming. We’ll explore both high-level topics (for example, programming with generics and protocols), as well as low-level topics (for example, wrapping a C library and string internals).

2020-12-03

functionswift function-swift 中文版

Learn core concepts of functional programming with Swift and leverage them in real world code. We’ll explain the concepts behind functional programming and how Swift makes it easy to leverage them in a pragmatic way, in order to write clearer and more expressive code.

2020-11-30

swiftui swift-UI 中文版

Get started quickly with SwiftUI and Combine reactive programming framework through practice, and master the next generation client UI development technology At WWDC 2019, Apple announced the declarative new interface framework SwiftUI, and the supporting responsive programming framework Combine.

2020-11-30

iOS-Apprentice-v7.0-Swift4.2.zip

iOS Apprentice Swift4.2版本 完整版 最新版,非常好用的iOS入门基础教程,里面包含了教程及代码、资源文件。

2019-07-09

OC AES 128位解密

+ (NSData *)AES128operation:(CCOperation)operation data:(NSData *)data key:(NSString *)key iv:(NSString *)iv { char keyPtr[kCCKeySizeAES128 + 1]; //kCCKeySizeAES128是加密位数 可以替换成256位的 bzero(keyPtr, sizeof(keyPtr)); [key getCString:keyPtr maxLength:sizeof(keyPtr) encoding:NSUTF8StringEncoding]; // IV char ivPtr[kCCBlockSizeAES128 + 1]; bzero(ivPtr, sizeof(ivPtr)); [iv getCString:ivPtr maxLength:sizeof(ivPtr) encoding:NSUTF8StringEncoding]; size_t bufferSize = [data length] + kCCBlockSizeAES128; void *buffer = malloc(bufferSize); size_t numBytesEncrypted = 0; // 设置加密参数 /** 这里设置的参数ios默认为CBC加密方式,如果需要其他加密方式如ECB,在kCCOptionPKCS7Padding这个参数后边加上kCCOptionECBMode,即kCCOptionPKCS7Padding | kCCOptionECBMode,但是记得修改上边的偏移量,因为只有CBC模式有偏移量之说 */ CCCryptorStatus cryptorStatus = CCCrypt(operation, kCCAlgorithmAES128, kCCOptionPKCS7Padding, keyPtr, kCCKeySizeAES128, ivPtr, [data bytes], [data length], buffer, bufferSize, &numBytesEncrypted;); if(cryptorStatus == kCCSuccess) { return [NSData dataWithBytesNoCopy:buffer length:numBytesEncrypted]; } else { NSLog(@"AES operation failed"); } free(buffer); return nil; }

2019-03-25

空空如也

TA创建的收藏夹 TA关注的收藏夹

TA关注的人

提示
确定要删除当前文章?
取消 删除