hawkit / Apple-Sample-Code

苹果示例代码学习

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Apple Sample Code - 苹果示例代码

UI

用户界面相关示例。

NavBar

  • NavBarCustomizingUINavigationBarsappearance
  • Version 8.0, 2017-12-07

定制导航栏示例。

CustomTransitions

  • CustomViewControllerPresentationsandTransitions
  • Version 1.0, 2016-01-28

定制页面过渡。

CollectionViewTransition

  • Version 1.1, 2013-10-29

两个不同layout但内容相同的collection view动画过渡。

Photo Transitioning

  • PhotoTransitioningUsingUIViewPropertyAnimatortocreateafullyinterativeandinterruptiblecustomviewcontrollertransition-fixed
  • Version 1.0, 2016-10-27

使用UIViewPropertyAnimator创建可交互、可中断的视图控制器过渡效果。

CustomAnimatableProperty

  • Version 1.0, 2014-04-02

图层动画。

ViewTransitions

  • Version 1.12, 2013-07-31

视图过渡切换动画。

Adaptive

自适应式UI示例。

AdaptiveElements

  • AdaptiveElementsImplementingYourOwnAdaptiveDesignwithUIKit-fixed
  • Version 1.0, 2016-09-13

使用UIKit实现自适应设计。

AdaptivePhotos

  • AdaptivePhotosUsingUIKitTraitsandSizeClasses-fixed
  • Version 4.1, 2016-09-13

使用UIKit Traits和Size Classes。

AstroLayout

  • AstroLayoutBuildingAdaptiveUIwithAutoLayout
  • Version 1.0, 2015-09-16

使用Auto Layout构建自适应UI。

ScrollView

StreetScroller

  • Version 1.2, 2013-07-31

使用UIScrollView子类实现无限滚动。

PageControl

  • PageControlUsingaPaginatedUIScrollView
  • Version 7.0, 2017-09-21

This application demonstrates how to use a "paginated" UIScrollView to display pages of images in a horizontal fashion as a mechanism for navigating between different pages of content. It is optimized to minimize the memory usage by loading only three image pages at a time the user user scrolls: the current page, the page before and after it. This application was designed as universal to run on both iPhone and iPad devices.

Image

图像处理相关示例。

SamplePhotosApp

  • ExampleappusingPhotosframework
  • Version 3.0, 2015-10-21

Photos framework示例。

LargeImageDownsizing

  • Version 1.1, 2014-03-27

使用降采样方式加载并显示大图。

PhotoScroller

  • Version 1.3, 2012-11-06

使用局部加载的方式加载并显示大图。

QuartzDemo

  • Quartz2DforiOS-fixed
  • Version 5.0, 2017-09-19

Quartz2D API使用示例。

UIImageEffects

  • Version 1.1, 2014-07-31

使用vImage、Quartz、UIKit方式绘制图像高斯模糊和染色效果。

Foundation

通用功能示例。

SimpleBackgroundTransfer

  • Version 1.1, 2013-10-01

后台下载示例。

VideoAudio

音视频相关示例。

HLSCatalog

  • UsingAVFoundationtoplayandpersistHTTPLiveStreams
  • Version 1.2, 2016-09-21
  • 2018-06-26

HLS 下载示例。

AVCompositionDebugVieweriOS

  • Version 1.1, 2014-03-11

AVCompostion、AVVideoComposition、AVAudioMix查看、调试视图。

AVCustomEdit

  • 2014-09-18
    • Minor fix. Import OpenGL headers.
  • Version 3.0, 2017-08-17
    • Added Swift target which renders the frames using Metal off screen rendering.

AVMutableComposition、AVVideoComposition、AVVideoCompositionInstruction使用示例。

AVSimpleEditoriOS

  • Version 1.1, 2013-08-22

基本的视频编辑示例。

AVTimedAnnotationWriter

  • AVTimedAnnotationWriterUsingCustomAnnotationMetadataforMovieWritingandPlayback
  • Version 1.0, 2014-09-17

AVTimedAnnotationWriter: Using Custom Annotation Metadata for Movie Writing and Playback.

use the AVAssetWriterInputMetadataAdaptor API to write circle annotation metadata during video playback.

AVCaptureLocation

  • UsingAVFoundationAPIstorecordamoviewithlocationmetadata

旨在使用 AVAssetWriterInputMetadataAdaptor 写入位置元数据。

AVPlayerLooping

  • AVFoundationLoopingPlayerUsingAVQueuePlayerandAVPlayerLoopertodemonstrateloopplayback
  • Version 2.0, 2016-09-13

循环播放示例。

AVCam

  • AVCam-iOSUsingAVFoundationtoCaptureImagesandMovies

AVCam: Building a Camera App | Apple Developer Documentation

使用AVFoundation采集图片和影片示例。

AVCamManual

  • AVCamManualExtendingAVCamtoUseManualCaptureAPI
  • Version 3.1, 2016-09-15

更细化的手动采集示例。

AVCamFilter

  • AVCamPhotoFilterUsingAVFoundationtoCapturephotoswithimageprocessing
  • AVCamFilterApplyingFiltersToACaptureStream
    • 2019-05-15

AVCamFilter: Applying Filters to a Capture Stream | Apple Developer Documentation

拍照滤镜示例。

AVReaderWriter

  • AVReaderWriterOfflineAudioVideoProcessing
  • Version 3.1, 2016-09-13

使用AVAssetReader和AVAssetWriter离线处理音视频。

AVBasicVideoOutput

  • Real-timeVideoProcessingUsingAVPlayerItemVideoOutput-fixed
  • Version 1.2, 2015-10-01

Real-time Video Processing Using AVPlayerItemVideoOutput.

AVFoundationSimplePlayer

  • CreatingAMoviePlayerAppWithBasicPlaybackControls
  • 2020-02-12

AVPlayer简单使用。

AVFoundationQueuePlayer

  • AVFoundationQueuePlayer-iOSUsingaMixtureofLocalFileBasedAssetsandHTTPLiveStreamingAssetswithAVFoundation
  • Version 2.0, 2016-09-13

AVQueuePlayer简单使用。

AVFoundationPiPPlayer

  • AVFoundationPiPPlayerPicture-in-PicturePlaybackwithAVKit
  • Version 1.4, 2018-02-08

简单实现视频画中画模式。

AVCamBarcode

  • AVCamBarcodeUsingAVFoundationtoDetectBarcodesandFaces
  • Version 3.0, 2017-09-19

使用AVFoundation采集API监测条形码和人脸。

AVAEMixerSample

  • UsingAVAudioEngineforPlaybackMixingandRecordingAVAEMixerSample
  • Version 2.3, 2017-03-23

使用AVAudioEngine进行播放、录音和混音。

AVMetadataRecordPlay

  • AVMetadataRecordPlayTimedMetadataCaptureRecordingandPlayback
  • Version 1.2, 2017-03-09

使用AVFoundation采集API录制和播放带时间元数据的影片。

Metal

MetalComputeBasic

  • PerformingCalculationsOnAGPU
  • 2020-02-29

使用Metal着色器实现一般的for循环,并在计算管线实现并行计算。

MetalKitAndRenderingSetup

  • UsingMetalToDrawAViewContentsents
  • 2019-05-18

使用MetalKit进行基本的颜色绘制。

HelloTriangle

  • UsingARenderPipelineToRenderPrimitives
  • 2020-09-05

使用Metal绘制渐变三角形。

CPU-GPU-Synchronization

  • SynchronizingCPUAndGPUWork
  • 2021-01-16

同步CPU和GPU的工作。

BasicTexturing

  • CreatingAndSamplingTextures
  • 2021-01-16

展示一个自定义纹理加载器,将图像数据加载到纹理中,并将其绘制到四边形中。

About

苹果示例代码学习


Languages

Language:Objective-C 60.5%Language:Swift 38.5%Language:Metal 0.8%Language:C 0.1%Language:GLSL 0.1%