Xamarin.iOS sample apps
Перейти к файлу
Rolf Bjarne Kvinge aeb4f82a87 Work around bug #28324.
https://bugzilla.xamarin.com/show_bug.cgi?id=28324
2015-03-23 15:05:57 +01:00
AQTapDemo [AQTapDemo] fix metadata 2015-02-04 00:59:22 +03:00
AUSoundTriggeredPlayingSoundMemoryBased Pull from upstream 2015-01-19 20:39:40 +05:30
AVCaptureFrames Pull from upstream 2015-01-19 20:39:40 +05:30
AVCompositionDebugVieweriOS Pull from upstream 2015-01-19 20:39:40 +05:30
AVCustomEdit Update README.md 2015-01-20 11:56:51 -05:00
AVTouchSample Pull from upstream 2015-01-19 20:39:40 +05:30
AirLocate Pull from upstream 2015-01-19 20:39:40 +05:30
AppPrefs Pull from upstream 2015-01-19 20:39:40 +05:30
AsyncDownloadImage Pull from upstream 2015-01-19 20:39:40 +05:30
AudioConverterFileConverter [AudioConverterFileConverter] Don't complain about not getting any packet descriptions when none were read. Fixes bug #21940 comment 20. 2015-02-04 15:24:07 +01:00
AudioGenerator Pull from upstream 2015-01-19 20:39:40 +05:30
AudioQueueOfflineRenderDemo Pull from upstream 2015-01-19 20:39:40 +05:30
AudioTapProcessor Pull from upstream 2015-01-19 20:39:40 +05:30
BackgroundExecution Pull from upstream 2015-01-19 20:39:40 +05:30
BindingSample Working With Images 2015-02-19 13:22:10 -06: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 Pull from upstream 2015-01-19 20:39:40 +05:30
ButtonEventDemo Pull from upstream 2015-01-19 20:39:40 +05:30
ButtonTapper3000 Pull from upstream 2015-01-19 20:39:40 +05:30
Calendars Pull from upstream 2015-01-19 20:39:40 +05:30
CircleLayout Pull from upstream 2015-01-19 20:39:40 +05:30
CollectionViewTransition Pull from upstream 2015-01-19 20:39:40 +05:30
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 Pull from upstream 2015-01-19 20:39:40 +05:30
CoreImage Pull from upstream 2015-01-19 20:39:40 +05:30
CoreLocation Pull from upstream 2015-01-19 20:39:40 +05:30
CoreMidiSample Pull from upstream 2015-01-19 20:39:40 +05:30
CoreTelephonyDemo Pull from upstream 2015-01-19 20:39:40 +05:30
CustomCollectionViewLayoutAttributes Pull from upstream 2015-01-19 20:39:40 +05:30
CustomInputStream CustomInputStream: protect against stack overflows. Fixes #25376. 2015-02-17 16:47:23 +01:00
CustomPropertyAnimation Pull from upstream 2015-01-19 20:39:40 +05:30
Data Pull from upstream 2015-01-19 20:39:40 +05:30
DesignerWalkthrough Pull from upstream 2015-01-19 20:39:40 +05:30
Drawing Pull from upstream 2015-01-19 20:39:40 +05:30
DynamicsCatalog Pull from upstream 2015-01-19 20:39:40 +05:30
EvolveGraphicsAndAnimation Pull from upstream 2015-01-19 20:39:40 +05:30
FileSystemSampleCode Pull from upstream 2015-01-19 20:39:40 +05:30
FontList Pull from upstream 2015-01-19 20:39:40 +05:30
FrogScroller Pull from upstream 2015-01-19 20:39:40 +05:30
GLCameraRipple Pull from upstream 2015-01-19 20:39:40 +05:30
GLPaint-GameView Pull from upstream 2015-01-19 20:39:40 +05:30
GameCenterSample Pull from upstream 2015-01-19 20:39:40 +05:30
GoogleAdMobAds/binding Pull from upstream 2015-01-19 20:39:40 +05:30
HelloWorld_iPhone Pull from upstream 2015-01-19 20:39:40 +05:30
Hello_ComplexUniversal Pull from upstream 2015-01-19 20:39:40 +05:30
Hello_MultiScreen_iPhone Pull from upstream 2015-01-19 20:39:40 +05:30
Hello_Universal Pull from upstream 2015-01-19 20:39:40 +05:30
Hello_iPad Pull from upstream 2015-01-19 20:39:40 +05:30
HttpClient Pull from upstream 2015-01-19 20:39:40 +05:30
ImageProtocol Pull from upstream 2015-01-19 20:39:40 +05:30
KeyValueObserving Pull from upstream 2015-01-19 20:39:40 +05:30
Keychain Pull from upstream 2015-01-19 20:39:40 +05:30
LazyTableImages Pull from upstream 2015-01-19 20:39:40 +05:30
LazyTableImagesAsync Pull from upstream 2015-01-19 20:39:40 +05:30
LineLayout Pull from upstream 2015-01-19 20:39:40 +05:30
LowLevelGLPaint Pull from upstream 2015-01-19 20:39:40 +05:30
MTDJsonDemo Pull from upstream 2015-01-19 20:39:40 +05:30
MTDReflectionWalkthrough Pull from upstream 2015-01-19 20:39:40 +05:30
MTDWalkthrough Pull from upstream 2015-01-19 20:39:40 +05:30
MTGKTapper Pull from upstream 2015-01-19 20:39:40 +05:30
ManualStoryboard Pull from upstream 2015-01-19 20:39:40 +05:30
MapCallouts Pull from upstream 2015-01-19 20:39:40 +05:30
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 Pull from upstream 2015-01-19 20:39:40 +05:30
MonoCatalogSample Pull from upstream 2015-01-19 20:39:40 +05:30
MonoDevelopTouchCells Pull from upstream 2015-01-19 20:39:40 +05:30
MotionGraphs Pull from upstream 2015-01-19 20:39:40 +05:30
MoviePlayback Pull from upstream 2015-01-19 20:39:40 +05:30
MultichannelMixer Pull from upstream 2015-01-19 20:39:40 +05:30
NSZombieApocalypse Pull from upstream 2015-01-19 20:39:40 +05:30
Notifications Pull from upstream 2015-01-19 20:39:40 +05:30
OpenGL Pull from upstream 2015-01-19 20:39:40 +05:30
OpenGLESSample Pull from upstream 2015-01-19 20:39:40 +05:30
OpenGLESSample-GameView Pull from upstream 2015-01-19 20:39:40 +05:30
OpenGLScroller Pull from upstream 2015-01-19 20:39:40 +05:30
PaintCode Pull from upstream 2015-01-19 20:39:40 +05:30
PassKit Update README.md 2015-03-03 16:34:57 +03:00
PinchIt Pull from upstream 2015-01-19 20:39:40 +05:30
PokerNightVoting Pull from upstream 2015-01-19 20:39:40 +05:30
Popovers Pull from upstream 2015-01-19 20:39:40 +05:30
PrintBanner Pull from upstream 2015-01-19 20:39:40 +05:30
PrintSample Pull from upstream 2015-01-19 20:39:40 +05:30
PrivacyPrompts Pull from upstream 2015-01-19 20:39:40 +05:30
Protocols_Delegates_Events Pull from upstream 2015-01-19 20:39:40 +05:30
QRchestra Pull from upstream 2015-01-19 20:39:40 +05:30
QuartzSample Pull from upstream 2015-01-19 20:39:40 +05:30
Quotes Pull from upstream 2015-01-19 20:39:40 +05:30
ReachabilitySample Pull from upstream 2015-01-19 20:39:40 +05:30
RecipesAndPrinting Pull from upstream 2015-01-19 20:39:40 +05:30
RegionDefiner Pull from upstream 2015-01-19 20:39:40 +05:30
RosyWriter Pull from upstream 2015-01-19 20:39:40 +05:30
Rotation Pull from upstream 2015-01-19 20:39:40 +05:30
SearchDemo Pull from upstream 2015-01-19 20:39:40 +05:30
SharedResources Pull from upstream 2015-01-19 20:39:40 +05:30
SimpleBackgroundFetch Pull from upstream 2015-01-19 20:39:40 +05:30
SimpleBackgroundTransfer Pull from upstream 2015-01-19 20:39:40 +05:30
SimpleCollectionView Pull from upstream 2015-01-19 20:39:40 +05:30
SimpleDrillDown Pull from upstream 2015-01-19 20:39:40 +05:30
SimpleTextInput Pull from upstream 2015-01-19 20:39:40 +05:30
SoZoomy Pull from upstream 2015-01-19 20:39:40 +05:30
SocialFrameworkDemo Pull from upstream 2015-01-19 20:39:40 +05:30
Sound Pull from upstream 2015-01-19 20:39:40 +05:30
SplitView Pull from upstream 2015-01-19 20:39:40 +05:30
SpriteKit Pull from upstream 2015-01-19 20:39:40 +05:30
SpriteKitPhysicsCollisions [SpriteKitPhysicsCollisions] fix readme 2015-03-03 16:15:57 +03:00
SpriteTour Pull from upstream 2015-01-19 20:39:40 +05:30
StandardControls removed duplicate samples, add moveto.md 2013-02-12 10:17:22 -08:00
Stars Pull from upstream 2015-01-19 20:39:40 +05:30
StateRestoration [StateRestoration] port to unified api 2015-03-09 18:38:12 +03:00
StoreKit Merge branch 'master' of https://github.com/xamarin/monotouch-samples 2015-03-02 12:00:38 -05: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 [StreamingAudio] change string value with enum 2015-01-23 17:09:49 +03:00
SysSound [SysSound] fix namespace. fix icons 2015-03-20 21:06:56 +03:00
Tabbed_Images Pull from upstream 2015-01-19 20:39:40 +05:30
TableAndCellStyles removed duplicate samples, add moveto.md 2013-02-12 10:17:22 -08:00
TableEditing Pull from upstream 2015-01-19 20:39:40 +05:30
TableParts Pull from upstream 2015-01-19 20:39:40 +05:30
TextKitDemo Pull from upstream 2015-01-19 20:39:40 +05:30
ThreadedCoreData Pull from upstream 2015-01-19 20:39:40 +05:30
TicTacToe Pull from upstream 2015-01-19 20:39:40 +05:30
Touch Pull from upstream 2015-01-19 20:39:40 +05:30
Touches_Classic Pull from upstream 2015-01-19 20:39:40 +05:30
Touches_GestureRecognizers Pull from upstream 2015-01-19 20:39:40 +05:30
Transitioning_To_Xcode_4 Pull from upstream 2015-01-19 20:39:40 +05:30
TransitionsDemo Pull from upstream 2015-01-19 20:39:40 +05:30
UIImageEffects Pull from upstream 2015-01-19 20:39:40 +05:30
ViewTransitions Pull from upstream 2015-01-19 20:39:40 +05:30
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 Work around bug #28324. 2015-03-23 15:05:57 +01:00
WayUpSample Pull from upstream 2015-01-19 20:39:40 +05:30
WeatherMap Pull from upstream 2015-01-19 20:39:40 +05:30
WorkingWithImages Working with Images 2015-03-17 10:17:04 -05:00
Working_with_images Pull from upstream 2015-01-19 20:39:40 +05:30
WorldCities Pull from upstream 2015-01-19 20:39:40 +05:30
ZoomingPdfViewer Pull from upstream 2015-01-19 20:39:40 +05:30
ios7fonts Pull from upstream 2015-01-19 20:39:40 +05:30
ios8 [ios8/SingleWordKeyboard] updated .csproj to newer template so the extension shows up again 2015-03-17 16:14:04 -06: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!