Xamarin.iOS sample apps
Перейти к файлу
Rustam Zaitov 6499a8fe5f [HlsCatalog] use setter for AVAssetDownloadOptions 2016-09-14 21:41:12 +03:00
AQTapDemo
AUSoundTriggeredPlayingSoundMemoryBased
AVCam [AVCam] add metadata 2016-06-30 20:10:58 +03:00
AVCaptureFrames [AVCaptureFrames] Use CVOptionFlags in CVPixelBuffer.Lock: 2016-03-20 18:11:17 -03:00
AVCompositionDebugVieweriOS
AVCustomEdit
AVTouchSample
AirLocate
AppPrefs
ApplicationFundamentals
AsyncDownloadImage
AudioConverterFileConverter
AudioGenerator
AudioQueueOfflineRenderDemo
AudioTapProcessor
BackgroundExecution
BindingSample
BouncingGameCompleteiOS
BouncingGameEmptyiOS
BubbleCell
ButtonEventDemo
ButtonTapper3000
Calendars
Chat
CircleLayout
CollectionViewTransition
ContentControls
Controls
CoreAnimation
CoreImage
CoreLocation
CoreMidiSample
CoreTelephonyDemo
CreatingTabbedApplications
CustomCollectionViewLayoutAttributes
CustomInputStream
CustomPropertyAnimation
Data
DesignerWalkthrough
DispatchSourceExamples [DispatchSourceExamples] Dispose file stream in vnode test 2016-06-20 15:04:04 -03:00
Drawing
DynamicsCatalog
EvolveGraphicsAndAnimation
FileSystemSampleCode
FontList
FrogScroller
GLCameraRipple
GLPaint-GameView
GameCenterSample
GoogleAdMobAds/binding
GraphicsAndAnimation [CoreGraphicsSamples] Fix architecture in Debug|iPhoneSimulator config: 2016-03-22 14:41:36 -03:00
GrowRowTable
HelloComponents Update HelloComponents sample with AlertCenter component 2016-05-25 15:26:01 -04:00
HelloWorld_iPhone
Hello_ComplexUniversal
Hello_MultiScreen_iPhone
Hello_Universal
Hello_iOS [hello, ios] renaming class. 2016-04-12 10:28:50 -04:00
Hello_iPad
HomeKit/HomeKitIntro
HttpClient [HttpClient] Fix for #39991: 2016-03-30 18:04:37 -03:00
ImageProtocol
InfColorPicker
IntroToAppearance
IntroToiOS7 [LayoutWithNavController] Fix architecture in Debug|iPhoneSimulator config: 2016-03-22 14:43:37 -03:00
IntroductionToiCloud
KeyValueObserving
Keychain
LazyTableImages
LazyTableImagesAsync
LifecycleDemo
LineLayout
LocalNotifications Updating sample 2016-07-12 12:23:14 -04:00
Location
LowLevelGLPaint LowLevelGLPaint fix for Bug37416 2016-06-16 16:25:12 +05:30
MTDJsonDemo
MTDReflectionWalkthrough
MTDWalkthrough
MTGKTapper
ManualCameraControls [ManualCameraControls] Use CVOptionFlags in CVPixelBuffer.Lock: 2016-03-20 18:15:58 -03:00
ManualStoryboard
MapCallouts [MapCallouts] Fix Info.plist #41275 2016-05-24 13:28:09 -03:00
MapDemo
MapKitSearch
MediaNotes
MidiTest
MonoCatalog-MonoDevelop
MonoCatalogSample
MonoDevelopTouchCells
MotionGraphs
MoviePlayback
MultichannelMixer
NSZombieApocalypse
Newsstand [Newsstand] Handle zero issues in NKLibrary 2016-06-20 14:34:44 -03:00
Notifications
OpenGL
OpenGLESSample
OpenGLESSample-GameView
OpenGLScroller
PaintCode
PassKit
PinchIt
PokerNightVoting
Popovers
PrintBanner
PrintSample
PrivacyPrompts
Profiling/MemoryDemo [MemoryDemo] Add missing project configs 2016-06-20 17:39:10 -03:00
Protocols_Delegates_Events
QRchestra
QuartzSample
Quotes
ReachabilitySample
RecipesAndPrinting
RegionDefiner
RosyWriter
Rotation
ScratchTicket
SearchDemo
SharedResources
SimpleBackgroundFetch
SimpleBackgroundTransfer Removed NSAllowsArbitraryLoads=true, because new image is HTTPS 2016-08-04 20:14:08 -07:00
SimpleCollectionView
SimpleDrillDown
SimpleLogin
SimpleTextInput
SoZoomy
SocialFrameworkDemo Social Framework Demo 2016-06-09 09:45:10 -05:00
Sound
SplitView
SpriteKit
SpriteKitPhysicsCollisions
SpriteTour
StandardControls
Stars
StateRestoration
StoreKit
StoryboardIntro
StoryboardTable [fix-38099] Removed underscore(_) from method names 2016-06-21 10:07:52 +05:30
StoryboardTable_LocalAuthentication
StreamingAudio
SysSound
Tabbed_Images
TableAndCellStyles
TableEditing
TableParts
TextKitDemo
ThreadedCoreData
TicTacToe
Touch
Touches_Classic
Touches_GestureRecognizers
Transitioning_To_Xcode_4
TransitionsDemo
UIImageEffects
ViewTransitions
WalkingGameCompleteiOS Update monogame framework to 3.5 to fix bug 37347 2016-05-25 13:03:02 -04:00
WalkingGameEmptyiOS Update monogame framework to 3.5 to fix bug 37347 2016-05-25 14:02:41 -04:00
WatchKit
WayUpSample
WeatherMap
WebView Adding Webview sample 2016-07-14 23:53:32 -04:00
WorkingWithImages
WorkingWithTables
Working_with_images
WorldCities
ZoomingPdfViewer [ZoomingPdfViewer] only portait orientation should be allowed for this sample 2016-06-20 20:46:31 +03:00
iOS7-ui-updates [ImageView] Code refactoring 2016-05-25 22:37:18 -03:00
intro-to-extensions
ios7fonts
ios8 [VideoTimeLine] Fix formatting issues + floating comparison 2016-06-30 13:18:24 -03:00
ios9 [FilterDemoApp] Update sample code: 2016-05-24 20:07:04 -03:00
ios10 [HlsCatalog] use setter for AVAssetDownloadOptions 2016-09-14 21:41:12 +03:00
tvos Social Framework Demo 2016-06-09 09:45:10 -05:00
watchOS [WatchKitCatalog] Remove warnings 2016-05-20 18:04:04 +02:00
.gitattributes
.gitignore Update .gitignore 2016-07-18 19:47:54 -03:00
LICENSE
Make.common
Makefile
README.md
Xamarin.Edu.SampleGallery.Core.dll
install-hook.sh
mdtool-build
pre-commit.posix
validate.posix
xcsv.exe

README.md

MonoTouch Samples

The samples in this directory use the MonoTouch toolchain and MonoDevelop project files to illustrate the basics of how to work with iOS and the SDK.

License

The Apache License 2.0 applies to all samples in this repository.

Copyright 2011 Xamarin Inc

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.

Samples Layout

Version Specific Samples

Starting with iOS 8, we started adding samples that showcase specific features introduced in a release into a directory for the release. So all the new iOS 8 feature samples live in the ios8 directory, and the iOS 9 features live in the ios9 directory.

WatchKit

WatchKit samples are in the WatchKit directory, there are a couple of them:

Contributing

Before adding a sample to the repository, please run either install-hook.bat or install-hook.sh depending on whether you're on Windows or a Posix system. This will install a Git hook that runs the Xamarin code sample validator before a commit, to ensure that all samples are good to go.

Samples Submission Guidelines

Galleries

We love samples! Application samples show off our platform and provide a great way for people to learn our stuff. And we even promote them as a first-class feature of the docs site. You can find our two sample galleries here:

Sample GitHub Repositories

These sample galleries are populated by samples in our six sample GitHub repos:

The mobile-samples repository is for samples that are cross-platform. The mac-ios-samples repository is for samples that are Mac/iOS only.

Sample Requirements

We welcome sample submissions. Please ping Nat or Miguel for repo commit access.

However, because the sample galleries are powered by the github sample repos, each sample needs to have the following things:

  • Screenshots - a folder called Screenshots that has at least one screen shot of the sample (preferably a screen shot for every page or every major functionality piece, people really key off these things). for the xplat samples, the folder should be split into platform folders, e.g. iOS, Android, Windows. see https://github.com/xamarin/mobile-samples/tree/master/Tasky/Screenshots for an example of this.

  • Readme - a README.md file that has the name of the sample, a description, and author attribution. sample here: https://github.com/xamarin/mobile-samples/blob/master/Tasky/README.md

  • Metadata - Finally, it needs a Metadata.xml file (https://github.com/xamarin/mobile-samples/blob/master/Tasky/Metadata.xml) that has some information:

    • ID - A GUID for the sample. You can generate this in MD under Tools menu : Insert GUID. we need this to key between articles and their associated samples

    • IsFullApplication - Boolean flag (true or false): whether or not this is a full application such as the MWC App, Tasky, etc., or it's just a feature sample, such as, how to use 'x' feature. the basic test here is, if you would submit this to the app store because it's useful, then it's a full app, otherwise it's just a feature sample.

    • Brief - Short description or what your sample does. This allows us to display a nice and clean vignette on the sample page.

    • Level - Beginning, Intermediate, or Advanced: this is the intended audience level for the sample. only the getting started samples are Beginning, as they are intended for people who are just starting with the platform. most samples are Intermediate, and a few, that dive deep into difficult APIs, should be Advanced.

    • Minimum License Requirement - Starter, Indie, Business, or Enterprise: denotes the license that a user has to have in order to build/run the sample.

    • Tags: a list of relevant tags for the app. These are:

      • Data
      • User Interface
      • Games
      • Graphics (CoreDrawing, Animation, OpenGL...)
      • Media (Video, Sound, recording, photos)
      • Platform Features (Photo Library, Contacts, Calendars, etc.)
      • Device Features (NFC, Accelerometer, Compass, Magnemometer, Bluetooth, RFID)
      • Cloud (Web Services, Networking, etc.)
      • Backgrounding
      • Maps + Location
      • Binding + Interop (Projections)
      • Notifications
      • Touch
      • Getting Started
      • Async
      • Extension
      • iOS8
      • iOS9
      • Watch
      • Keyboard
      • SceneKit
      • FSharp
    • SupportedPlatforms: this is only for cross plat samples. It's a comma-separated list, and the valid values are iOS, Android, and Windows.

    • Gallery: This tag must contain a value of true if you want the sample to show up in the samples gallery on the developer portal.

  • Buildable Sln and CSProj file - the project must build and have the appropriate project scaffolding (solution + proj).

A good example of this stuff is here in the drawing sample: https://github.com/xamarin/monotouch-samples/tree/master/Drawing

For a x-platform sample, please see: https://github.com/xamarin/mobile-samples/tree/master/Tasky

GitHub Integration

We integrate tightly with Git to make sure we always provide working samples to our customers. This is achieved through a pre-commit hook that runs before your commit goes through, as well as a post-receive hook on GitHub's end that notifies our samples gallery server when changes go through.

To you, as a sample committer, this means that before you push to the repos, you should run the "install-hook.bat" or "install-hook.sh" (depending on whether you're on Windows or OS X/Linux, respectively). These will install the Git pre-commit hook. Now, whenever you try to make a Git commit, all samples in the repo will be validated. If any sample fails to validate, the commit is aborted; otherwise, your commit goes through and you can go ahead and push.

This strict approach is put in place to ensure that the samples we present to our customers are always in a good state, and to ensure that all samples integrate correctly with the sample gallery (README.md, Metadata.xml, etc). Note that the master branch of each sample repo is what we present to our customers for our stable releases, so they must always Just Work.

Should you wish to invoke validation of samples manually, simply run "validate.windows" or "validate.posix" (again, Windows vs OS X/Linux, respectively). These must be run from a Bash shell (i.e. a terminal on OS X/Linux or the Git Bash terminal on Windows).

If you have any questions, don't hesitate to ask!