Xamarin.iOS sample apps
Перейти к файлу
Peter Collins 08092c8cc3 [WatchNotifications] Fix Project Reference relative path 2015-05-21 17:31:32 -04:00
AQTapDemo no message 2015-04-27 17:35:54 -04:00
AUSoundTriggeredPlayingSoundMemoryBased [AUSoundTriggeredPlayingSoundMemoryBased] fix sdk warning 2015-05-20 12:37:38 +03:00
AVCaptureFrames no message 2015-04-27 17:35:54 -04:00
AVCompositionDebugVieweriOS no message 2015-04-27 17:35:54 -04:00
AVCustomEdit no message 2015-04-27 17:35:54 -04:00
AVTouchSample [Keychain][monocatalog][ExtensionsDemo][Touch][avTouch][reachability][CoreLocation][FontList] fix sdk warnings 2015-05-20 12:46:09 +03:00
AirLocate no message 2015-04-27 17:35:54 -04:00
AppPrefs no message 2015-04-27 17:35:54 -04:00
AsyncDownloadImage no message 2015-04-27 17:35:54 -04:00
AudioConverterFileConverter Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
AudioGenerator [AudioGenerator] Add minimum OS version 2015-04-27 18:39:50 -04:00
AudioQueueOfflineRenderDemo Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
AudioTapProcessor [AudioTapProcessor] fix warnings 2015-05-20 11:41:47 +03:00
BackgroundExecution Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
BindingSample [Xamarin.XMBindingLibrarySample] remove unused member 2015-05-19 23:12:28 +03:00
BouncingGameCompleteiOS no message 2015-04-27 17:35:54 -04:00
BouncingGameEmptyiOS no message 2015-04-27 17:35:54 -04:00
BubbleCell [BubbleCell] deprecate sample 2015-05-06 22:10:05 +03:00
ButtonEventDemo [ButtonEventDemo] Add minimum OS version 2015-04-29 12:25:16 -04:00
ButtonTapper3000 [ButtonTapper3000] resolve warnings 2015-05-19 20:53:57 +03:00
Calendars no message 2015-04-27 17:35:54 -04:00
Chat Update README.md 2015-05-06 21:24:48 +03:00
CircleLayout no message 2015-04-27 17:35:54 -04:00
CollectionViewTransition no message 2015-04-27 17:35:54 -04:00
ContentControls removed duplicate samples, add moveto.md 2013-02-12 10:17:22 -08:00
Controls no message 2015-04-27 17:35:54 -04:00
CoreAnimation Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
CoreImage no message 2015-04-27 17:35:54 -04:00
CoreLocation [Keychain][monocatalog][ExtensionsDemo][Touch][avTouch][reachability][CoreLocation][FontList] fix sdk warnings 2015-05-20 12:46:09 +03:00
CoreMidiSample Resolving and clearing out warning messages 2015-04-27 18:11:50 -04:00
CoreTelephonyDemo Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
CreatingTabbedApplications Adding Creating Tabbed Application sample 2015-04-02 18:53:14 +01:00
CustomCollectionViewLayoutAttributes Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
CustomInputStream Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
CustomPropertyAnimation Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
Data Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
DesignerWalkthrough remove designer walkthrough sample 2015-04-23 15:57:15 -04:00
DispatchSourceExamples [DispatchSourceExamples] Code improvements: 2015-04-06 17:39:03 +03:00
Drawing Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
DynamicsCatalog Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
EvolveGraphicsAndAnimation [EvolveGraphicsAndAnimation] Add minimum OS version 2015-04-29 12:46:14 -04:00
FileSystemSampleCode Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
FontList [Keychain][monocatalog][ExtensionsDemo][Touch][avTouch][reachability][CoreLocation][FontList] fix sdk warnings 2015-05-20 12:46:09 +03:00
FrogScroller Update brief tags description 2015-03-27 06:09:51 +03:00
GLCameraRipple [GLCameraRipple] Update code signing key 2015-05-05 12:10:18 -04:00
GLPaint-GameView Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
GameCenterSample Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
GoogleAdMobAds/binding Pull from upstream 2015-01-19 20:39:40 +05:30
GraphicsAndAnimation [AnimationSamples] prettify code. remove redundant newlines. use initialization syntax. fix visibility modifiers 2015-05-20 12:14:47 +03:00
HelloWorld_iPhone Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Hello_ComplexUniversal Update brief tags description 2015-03-27 06:09:51 +03:00
Hello_MultiScreen_iPhone Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Hello_Universal Update brief tags description 2015-03-27 06:09:51 +03:00
Hello_iOS Revert "Add Calabash.Start even if it already exists" 2015-05-05 11:44:38 -04:00
Hello_iPad Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
HomeKit/HomeKitIntro HomeKitIntro 2015-05-20 13:02:22 -05:00
HttpClient Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
ImageProtocol Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
InfColorPicker HomeKitIntro 2015-05-20 12:55:12 -05:00
KeyValueObserving [KeyValueObserving] Observe View's layer changes, bug #29339 2015-04-24 22:55:14 +03:00
Keychain [Keychain][monocatalog][ExtensionsDemo][Touch][avTouch][reachability][CoreLocation][FontList] fix sdk warnings 2015-05-20 12:46:09 +03:00
LazyTableImages [LazyTableImages] Fix crash on startup 2015-05-12 20:04:08 +03:00
LazyTableImagesAsync Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
LineLayout Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
LowLevelGLPaint Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
MTDJsonDemo [MTDJsonDemo] fix warning about supported orientations 2015-05-20 16:49:41 +03:00
MTDReflectionWalkthrough Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
MTDWalkthrough Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
MTGKTapper Add minimum OS version 2015-04-28 17:30:37 -04:00
ManualStoryboard Adding conditional segue sample for docs purposes 2015-03-23 23:31:11 -04:00
MapCallouts Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
MapKitSearch Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
MediaCapture Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
MediaNotes Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
MidiTest Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
MonoCatalog-MonoDevelop [Keychain][monocatalog][ExtensionsDemo][Touch][avTouch][reachability][CoreLocation][FontList] fix sdk warnings 2015-05-20 12:46:09 +03:00
MonoCatalogSample Pull from upstream 2015-01-19 20:39:40 +05:30
MonoDevelopTouchCells Adjust FinishedLaunching() structure 2015-04-01 11:41:08 -04:00
MotionGraphs Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
MoviePlayback Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
MultichannelMixer Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
NSZombieApocalypse Shorten brief descriptions 2015-04-23 16:04:21 -04:00
Notifications Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
OpenGL [OpenGL] Update GLKBaseEffectDrawing sample 2015-05-12 22:13:07 +03:00
OpenGLESSample Adjust FinishedLaunching() structure 2015-04-01 11:35:58 -04:00
OpenGLESSample-GameView Shorten brief descriptions 2015-04-23 16:04:21 -04:00
OpenGLScroller Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
PaintCode Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
PassKit Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
PinchIt Further resolved warnings and errors in monotouch-samples 2015-04-28 17:48:55 -04:00
PokerNightVoting Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Popovers Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
PrintBanner Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
PrintSample Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
PrivacyPrompts [PrivacyPrompts_Classic] clean usings 2015-04-07 02:08:44 +03:00
Protocols_Delegates_Events Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
QRchestra Resolved warnings in QRchestra sample 2015-05-05 17:04:03 -04:00
QuartzSample Resolved warnings in QuartzSample sample 2015-05-05 17:04:39 -04:00
Quotes Resolved warnings in Quotes sample 2015-05-05 16:59:40 -04:00
ReachabilitySample [Keychain][monocatalog][ExtensionsDemo][Touch][avTouch][reachability][CoreLocation][FontList] fix sdk warnings 2015-05-20 12:46:09 +03:00
RecipesAndPrinting [RecipesAndPrinting] Add minimum OS version 2015-04-28 18:02:00 -04:00
RegionDefiner Resolved warnings in RegionDefiner sample 2015-05-05 17:04:25 -04:00
RosyWriter Resolved warnings in RosyWriter sample 2015-05-05 17:03:10 -04:00
Rotation [Rotation] Add bundle identifier 2015-05-13 15:58:57 -04:00
ScratchTicket Removed Xamarin Test Cloud Agent component from ScratchTicket to reduce sample size 2015-05-11 14:56:25 -04:00
SearchDemo [SearchDemp] Add minimum OS version 2015-04-28 18:20:32 -04:00
SharedResources Resolved warnings in SharedResources sample 2015-05-05 16:56:49 -04:00
SimpleBackgroundFetch [SimpleBackgroundFetch] fix warnings about restoration id 2015-05-20 17:23:35 +03:00
SimpleBackgroundTransfer Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SimpleCollectionView Resolved warnings in SimpleCollectionView sample 2015-05-05 16:57:03 -04:00
SimpleDrillDown Shorten brief descriptions 2015-04-23 16:04:21 -04:00
SimpleTextInput Resolved warnings in SimpleTextInput sample 2015-05-05 17:02:46 -04:00
SoZoomy Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SocialFrameworkDemo Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Sound Shorten brief descriptions 2015-04-23 16:04:21 -04:00
SplitView Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SpriteKit Resolved warnings in SpriteKit sample 2015-05-05 17:01:51 -04:00
SpriteKitPhysicsCollisions Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SpriteTour Shorten brief descriptions 2015-04-23 16:04:21 -04:00
StandardControls removed duplicate samples, add moveto.md 2013-02-12 10:17:22 -08:00
Stars Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
StateRestoration Shorten brief descriptions 2015-04-23 16:04:21 -04:00
StoreKit Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
StoryboardTable Resolved warnings in StoryboardTable sample 2015-05-05 17:01:04 -04:00
StoryboardTable_LocalAuthentication Resolved warnings in StoryboardTable_LocalAuthentication sample 2015-05-05 17:01:40 -04:00
StreamingAudio Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SysSound Merge branch 'master' of github.com:xamarin/monotouch-samples 2015-03-23 18:08:09 +03:00
Tabbed_Images Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
TableAndCellStyles removed duplicate samples, add moveto.md 2013-02-12 10:17:22 -08:00
TableEditing Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
TableParts Resolved warnings in TableParts sample 2015-05-05 17:01:18 -04:00
TextKitDemo Resolved warnings in TextKitDemo sample 2015-05-05 16:57:20 -04:00
ThreadedCoreData Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
TicTacToe Resolved warnings in TicTacToe sample 2015-05-05 17:01:26 -04:00
Touch [Keychain][monocatalog][ExtensionsDemo][Touch][avTouch][reachability][CoreLocation][FontList] fix sdk warnings 2015-05-20 12:46:09 +03:00
Touches_Classic Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Touches_GestureRecognizers [Touches_GestureRecognizers] resolve warnings 2015-03-25 00:07:24 +03:00
Transitioning_To_Xcode_4 Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
TransitionsDemo Resolved warnings in TransitionsDemo sample 2015-05-05 16:57:35 -04:00
UIImageEffects Update brief tags description 2015-03-27 06:09:51 +03:00
ViewTransitions Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
WalkingGameCompleteiOS Fixed WalkingGameComplete to use MonoGame 3.3 and support 64 bit. 2015-03-18 17:06:26 -06:00
WalkingGameEmptyiOS Resolved warnings in WalkingGameEmptyBasic sample 2015-05-05 17:03:01 -04:00
WatchKit [WatchNotifications] Fix Project Reference relative path 2015-05-21 17:31:32 -04:00
WayUpSample Shorten brief descriptions 2015-04-23 16:04:21 -04:00
WeatherMap Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
WorkingWithImages Working with Images 2015-03-17 10:17:04 -05:00
Working_with_images [Working_with_images] Add minimum OS version 2015-04-29 15:45:41 -04:00
WorldCities Resolved warnings in WorldCities sample 2015-05-05 17:02:37 -04:00
ZoomingPdfViewer Resolved warnings in ZoomingPdfViewer sample 2015-05-05 16:57:50 -04:00
ios7fonts Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
ios8 [Dynamic Launch Screens]Tidying metadata tags 2015-05-21 11:02:14 -04:00
.gitattributes Add sln file (and make sure it stays as CRLF because VS needs it) for CoreTelephonyDemo. 2011-09-09 19:45:29 +02:00
.gitignore [gitignore] Removed packages folder 2015-01-19 23:06:21 -05:00
LICENSE Add License 2011-09-27 11:47:28 -04:00
Make.common Fix MonoCatalogSample build and include basic instructions to use the Makefile 2012-04-10 15:54:00 -04:00
README.md Updated README file 2015-03-02 15:28:27 -05:00
Xamarin.Edu.SampleGallery.Core.dll Update sample validator. 2012-07-05 19:30:05 +02:00
install-hook.sh Set executable bit on install-hook.sh and pre-commit.posix. 2011-09-27 19:14:23 +02:00
mdtool-build Fix mdtool build invocation. 2011-10-04 11:53:52 +02:00
pre-commit.posix Fix pre-commit script's use of ==. 2012-02-20 18:45:41 +01:00
validate.posix Fix usage of `find` in some scripts. 2012-02-17 21:39:36 +01:00
xcsv.exe Update sample validator. 2012-07-05 19:30:05 +02:00

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

iOS 8 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.

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
      • 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
      • 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!