Xamarin.iOS sample apps
Перейти к файлу
Aaron Sky 93c7a04014 Updated GpsWatch for impending submission compliance testing 2015-04-01 18:22:28 -04:00
AQTapDemo Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
AUSoundTriggeredPlayingSoundMemoryBased Pull from upstream 2015-01-19 20:39:40 +05:30
AVCaptureFrames Update brief tags description 2015-03-27 06:09:51 +03:00
AVCompositionDebugVieweriOS Pull from upstream 2015-01-19 20:39:40 +05:30
AVCustomEdit [AVCustomEdit] get tmp folder in right way. Old version crashes on iOS8 2015-03-25 02:02:06 +03:00
AVTouchSample Adjust FinishedLaunching() structure 2015-04-01 12:00:33 -04:00
AirLocate Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
AppPrefs Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
AsyncDownloadImage Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
AudioConverterFileConverter Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
AudioGenerator Update brief tags description 2015-03-27 06:09:51 +03:00
AudioQueueOfflineRenderDemo Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
AudioTapProcessor Update brief tags description 2015-03-27 06:09:51 +03:00
BackgroundExecution Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
BindingSample Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
BouncingGameCompleteiOS Fixed fonts using the "non" build action instead of BundleResource. 2015-02-21 10:33:44 -07:00
BouncingGameEmptyiOS Removed files that should not have been added to the project in the first place because they bloat the size significantly. 2015-02-21 09:29:21 -07:00
BubbleCell Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
ButtonEventDemo Update brief tags description 2015-03-27 06:09:51 +03:00
ButtonTapper3000 Update brief tags description 2015-03-27 06:09:51 +03:00
Calendars Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
CircleLayout Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
CollectionViewTransition Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
ContentControls removed duplicate samples, add moveto.md 2013-02-12 10:17:22 -08:00
Controls Pull from upstream 2015-01-19 20:39:40 +05:30
CoreAnimation Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
CoreImage Update brief tags description 2015-03-27 06:09:51 +03:00
CoreLocation Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
CoreMidiSample Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
CoreTelephonyDemo Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
CustomCollectionViewLayoutAttributes Pull from upstream 2015-01-19 20:39:40 +05:30
CustomInputStream Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
CustomPropertyAnimation Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Data Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
DesignerWalkthrough Pull from upstream 2015-01-19 20:39:40 +05:30
Drawing Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
DynamicsCatalog Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
EvolveGraphicsAndAnimation Pull from upstream 2015-01-19 20:39:40 +05:30
FileSystemSampleCode Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
FontList Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
FrogScroller Update brief tags description 2015-03-27 06:09:51 +03:00
GLCameraRipple Update brief tags description 2015-03-27 06:09:51 +03:00
GLPaint-GameView Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
GameCenterSample Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
GoogleAdMobAds/binding Pull from upstream 2015-01-19 20:39:40 +05:30
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 typo fix 2015-03-28 21:09:08 -04:00
Hello_iPad Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
HttpClient Adjust FinishedLaunching() structure 2015-04-01 11:58:53 -04:00
ImageProtocol Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
InfColorPicker Walkthrough: Binding an Objective-C Library 2015-03-27 10:54:54 -05:00
KeyValueObserving Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Keychain Update brief tags description 2015-03-27 06:09:51 +03:00
LazyTableImages Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
LazyTableImagesAsync Pull from upstream 2015-01-19 20:39:40 +05:30
LineLayout Update brief tags description 2015-03-27 06:09:51 +03:00
LowLevelGLPaint Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
MTDJsonDemo Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
MTDReflectionWalkthrough Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
MTDWalkthrough Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
MTGKTapper Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03: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 Pull from upstream 2015-01-19 20:39:40 +05:30
MediaCapture Pull from upstream 2015-01-19 20:39:40 +05:30
MediaNotes Pull from upstream 2015-01-19 20:39:40 +05:30
MidiTest Pull from upstream 2015-01-19 20:39:40 +05:30
MonoCatalog-MonoDevelop Adjust FinishedLaunching() structure 2015-04-01 11:52:34 -04: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 Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
MoviePlayback Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
MultichannelMixer Update brief tags description 2015-03-27 06:09:51 +03:00
NSZombieApocalypse Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Notifications Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
OpenGL Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
OpenGLESSample Adjust FinishedLaunching() structure 2015-04-01 11:35:58 -04:00
OpenGLESSample-GameView Adjust FinishedLaunching() structure 2015-04-01 11:33:30 -04:00
OpenGLScroller Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
PaintCode Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
PassKit Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
PinchIt Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03: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] fix crash on iOS7. UIApplication.SharedApplication.CurrentUserNotificationSettings available since iOS8 2015-03-24 01:45:25 +03:00
Protocols_Delegates_Events Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
QRchestra Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
QuartzSample Adjust FinishedLaunching() structure 2015-03-31 15:12:37 -04:00
Quotes Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
ReachabilitySample Adjust FinishedLaunching() structure 2015-04-01 12:06:36 -04:00
RecipesAndPrinting Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
RegionDefiner Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
RosyWriter Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Rotation Update brief tags description 2015-03-27 06:09:51 +03:00
SearchDemo Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SharedResources Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SimpleBackgroundFetch Pull from upstream 2015-01-19 20:39:40 +05:30
SimpleBackgroundTransfer Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SimpleCollectionView Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SimpleDrillDown Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SimpleTextInput Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03: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 [Sound] replace xib with storyboard 2015-03-24 23:41:02 +03:00
SplitView Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SpriteKit Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SpriteKitPhysicsCollisions Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
SpriteTour Add FinishedLaunching() 2015-04-01 17:57:09 -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 Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
StoreKit Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
StoryboardTable Pull from upstream 2015-01-19 20:39:40 +05:30
StoryboardTable_LocalAuthentication Pull from upstream 2015-01-19 20:39:40 +05:30
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 Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
TextKitDemo Add FinishedLaunching() 2015-03-31 14:56:31 -04:00
ThreadedCoreData Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
TicTacToe Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
Touch Add brief description tag to metadata.xml 2015-03-23 18:03:04 +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 Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03: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 Fixed WalkingGame Empty to use MonoGame 3.3 and be 64 bit. 2015-03-18 16:35:18 -06:00
WatchKit Updated GpsWatch for impending submission compliance testing 2015-04-01 18:22:28 -04:00
WayUpSample Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03: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 Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
WorldCities Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
ZoomingPdfViewer Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
ios7fonts Add brief description tag to metadata.xml 2015-03-23 18:03:04 +03:00
ios8 Update brief tags description 2015-03-27 06:09:51 +03: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!