This commit is contained in:
conceptdev 2019-07-23 13:26:12 -07:00
Родитель f6a2fa9282
Коммит f30208421c
26 изменённых файлов: 97 добавлений и 153 удалений

Просмотреть файл

@ -8,6 +8,8 @@ products:
- xamarin
urlFragment: mtdjsondemo
---
# MonoTouch.Dialog JSON Walkthrough
# Xamarin.iOS MonoTouch.Dialog JSON Walkthrough
This sample demonstrates how to use the JSON API with MonoTouch.Dialog
![App showing user input fields loaded from JSON](Screenshots/MTDJsonDemo.png)

Просмотреть файл

@ -1,6 +1,6 @@
---
name: Xamarin.iOS - MonoTouch.Dialog Reflection API Walkthrough
description: This sample demonstrates how to use the Reflection API with MonTouch.Dialog
name: Xamarin.iOS - MonoTouch.Dialog Reflection API
description: This sample demonstrates how to use the Reflection API with MonoTouch.Dialog
page_type: sample
languages:
- csharp
@ -8,6 +8,8 @@ products:
- xamarin
urlFragment: mtdreflectionwalkthrough
---
# MonoTouch.Dialog Reflection API Walkthrough
# Xamarin.iOS MonoTouch.Dialog Reflection API
This sample demonstrates how to use the Reflection API with MonTouch.Dialog
This sample demonstrates how to use the Reflection API with MonoTouch.Dialog
![App showing list of data](Screenshots/MTDReflectionWalkthrough.png)

Просмотреть файл

@ -1,5 +1,5 @@
---
name: Xamarin.iOS - MonoTouch.Dialog Element Walkthrough
name: Xamarin.iOS - MonoTouch.Dialog Element
description: This sample demonstrates how to use the Element API with MonoTouch.Dialog
page_type: sample
languages:
@ -8,6 +8,8 @@ products:
- xamarin
urlFragment: mtdwalkthrough
---
# MonoTouch.Dialog Element Walkthrough
# Xamarin.iOS MonoTouch.Dialog Element
This sample demonstrates how to use the Element API with MonoTouch.Dialog
![App screenshots](Screenshots/MTDWalkthrough.png)

Просмотреть файл

@ -1,6 +1,6 @@
---
name: Xamarin.iOS - GameCenterSample
description: A sample demonstrating how to enable Game Center support in Monotouch. This sample based on Apple's Game Center example:...
description: A sample demonstrating how to enable Game Center support in Xamarin.iOS, based on Apple's Game Center example...
page_type: sample
languages:
- csharp
@ -10,16 +10,10 @@ urlFragment: mtgktapper-mtgktapper
---
# GameCenterSample
A sample demonstrating how to enable Game Center support in Monotouch.
A sample demonstrating how to enable Game Center support in Xamarin.iOS.
This sample based on Apple's Game Center example:
This sample is based on Apple's Game Center example:
https://developer.apple.com/library/ios/samplecode/GKTapper/Introduction/Intro.html#//apple_ref/doc/uid/DTS40010283
![GameCenterSample application screenshot](Screenshots/MTGKTapper1.png "GameCenterSample application screenshot")
## Authors
Bo Pang

Просмотреть файл

@ -10,10 +10,8 @@ urlFragment: miditest
---
# Midi Test
This sample illustrates how to use CoreAudio to load and play a MIDI sequence from a file, and uses an AUGraph to play the notes with an instrument effect. A Virtual Endpoint is also created to interecept and display the MIDI messages as it runs. The sample is a port the 'MIDI Driven Animation using CoreMIDI in Objective C' [sample code](http://www.deluge.co/?q=midi-driven-animation-core-audio-objective-c) by Ben Smiley.
This sample illustrates how to use CoreAudio to load and play a MIDI sequence from a file, and uses an AUGraph to play the notes with an instrument effect. A Virtual Endpoint is also created to intercept and display the MIDI messages as it runs. The sample is a port the ['MIDI Driven Animation using CoreMIDI in Objective C' sample code](http://www.deluge.co/?q=midi-driven-animation-core-audio-objective-c) by Ben Smiley.
## Authors
## Author
Original by Ben Smiley - http://www.deluge.co/?q=midi-driven-animation-core-audio-objective-c
Ported by Timothy Risi

Просмотреть файл

@ -1,6 +1,6 @@
---
name: Xamarin.iOS - MonoCatalog MonoDevelop
description: A kitchen sink example of common UI elements and APIs used in iOS and how you can use these with MonoTouch. Preview
name: Xamarin.iOS - MonoCatalog
description: A kitchen sink example of common UI elements and APIs used in iOS and how you can use these with Xamarin.iOS
page_type: sample
languages:
- csharp
@ -8,15 +8,9 @@ products:
- xamarin
urlFragment: monocatalog-monodevelop
---
# MonoCatalog MonoDevelop
# Xamarin.iOS MonoCatalog
A kitchen sink example of common UI elements and APIs used
in iOS and how you can use these with MonoTouch.
## Preview
![iPhone running MonoCatalog](http://farm7.static.flickr.com/6020/5999694606_bc1acdb573.jpg)
## Authors
Miguel de Icaza
![iPhone running MonoCatalog](Screenshots/MonoCatalog-MonoDevelop01.png)

Просмотреть файл

@ -1,6 +1,6 @@
---
name: Xamarin.iOS - Touch Cells
description: An example showing using a UITableView and displaying a custom cell within it. Preview
description: An example showing using a UITableView and displaying a custom cell within it.
page_type: sample
languages:
- csharp
@ -8,14 +8,8 @@ products:
- xamarin
urlFragment: monodeveloptouchcells
---
# Touch Cells
# Xamarin.iOS MonoTouch Cells
An example showing using a UITableView and displaying a custom cell within it.
## Preview
![iPhone running MonoDevelop TouchCells](http://farm7.static.flickr.com/6013/5999235933_dcab80c0a3.jpg)
## Authors
Miguel de Icaza
![iPhone running MonoDevelop TouchCells](Screenshots/MonoDevelopTouchCells.jpg)

Просмотреть файл

@ -18,18 +18,17 @@ of accelerometer, gyroscope and device motion data.
The project has the following classes:
* **GraphView** — A UIView subclass that provides the ability to plot accelerometer,
- **GraphView** — A UIView subclass that provides the ability to plot accelerometer,
gyroscope or device motion data. This is the same GraphView as the
one in the AccelerometerGraph sample.
* **GraphViewController** — A view controller that handles the display of
- **GraphViewController** — A view controller that handles the display of
accelerometer, gyroscope, and device motion data. Depending on the
argument that is passed into its constructor it can display graph(s)
generated from one of the three data types.
* **AppDelegate** — A standard implementation of the UIApplicationDelegate protocol.
- **AppDelegate** — A standard implementation of the UIApplicationDelegate protocol.
If you run the compiled application on a device that does not have a
gyroscope, no gyroscope or device motion data will be available. You
cannot effectively run the application on the simulator.
####Ported By: GouriKumari
![App showing chart of motion data](Screenshots/IMG_3177.PNG)

Просмотреть файл

@ -17,7 +17,3 @@ The example also shows how to enable Airplay for displayed movies from
within your applications.
![MoviePlayback application screenshot](Screenshots/01.png "MoviePlayback application screenshot")
## Authors
James Bentley

Просмотреть файл

@ -1,6 +1,6 @@
---
name: Xamarin.iOS - iPhone Multichannel Mixer test
description: Demonstrates how to build an Audio Unit Graph connecting a Multichannel Mixer instance to the RemoteIO unit. Two input busses are created each with...
description: "Demonstrates how to build an Audio Unit Graph connecting a Multichannel Mixer instance to the RemoteIO unit. Two input busses are created #ios6"
page_type: sample
languages:
- csharp

Просмотреть файл

@ -9,10 +9,7 @@ products:
urlFragment: nszombieapocalypse
---
# NSZombieApocalypse
The NSZombieApocalypse is a contrived game that exemplifies how to use the UIAccessibility protocol in order to make an app accessible to VoiceOver users.
![NSZombieApocalypse application screenshot](Screenshots/01.png "NSZombieApocalypse application screenshot")
## Authors
Ported by Gouri Kumari

Просмотреть файл

@ -1,6 +1,6 @@
---
name: Xamarin.iOS - Customizing UINavigationBar
description: This sample demonstrates using UINavigationController and UIViewController classes together as building blocks to your application's user...
description: "Demonstrates using UINavigationController and UIViewController classes together as building blocks to your application's user... #ui"
page_type: sample
languages:
- csharp
@ -8,10 +8,12 @@ products:
- xamarin
urlFragment: navigationbar
---
# Customizing UINavigationBar
# Customizing UINavigationBar in Xamarin.iOS
This sample demonstrates using `UINavigationController` and `UIViewController` classes together as building blocks to your application's user interface. Use it as a reference when starting the development of your new application. The various pages in this sample exhibit different ways of how to modify the navigation bar directly, using the appearance proxy, and by modifying the view controller's `UINavigationItem`. Among the levels of customization are varying appearance styles, and applying custom left and right buttons known as `UIBarButtonItems`.
![Customizing UINavigationBar application screenshot](Screenshots/screenshot-1.png "Customizing UINavigationBar application screenshot")
## Build Requirements
Xamarin.iOS 11.0 and Xcode 9.4.
@ -23,9 +25,3 @@ Xamarin.iOS 11.0 and Xcode 9.4.
## License
Xamarin port changes are released under the MIT license.
![Customizing UINavigationBar application screenshot](Screenshots/screenshot-1.png "Customizing UINavigationBar application screenshot")
## Author
Ported to Xamarin.iOS by Mykyta Bondarenko

Просмотреть файл

@ -1,3 +1,3 @@
# Newsstand
# Newsstand (DEPRECATED)
These small sample projects relate to the [Introduction to Newsstand](guides/ios/platform_features/introduction_to_newsstand/) guide,
These small sample projects relate to the [Introduction to Newsstand](guides/ios/platform_features/introduction_to_newsstand/) guide.

Просмотреть файл

@ -8,19 +8,15 @@ products:
- xamarin
urlFragment: notifications
---
# Notifications
# Notifications in Xamarin.iOS
This sample illustrates how to schedule and respond to
local notifications as well as how to register the device
for, and receive remote notifications (Apple Push
Notification Service).
To learn more about how to make push notifications work please read this <a href="http://developer.xamarin.com/guides/cross-platform/application_fundamentals/notifications/ios/remote_notifications_in_ios/">guide</a>.
To learn more about how to make push notifications work please read this [guide](http://developer.xamarin.com/guides/cross-platform/application_fundamentals/notifications/ios/remote_notifications_in_ios/).
Also original <a href="https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringPushNotifications/ConfiguringPushNotifications.html">Apple documentation</a> can be helpfull, it contains broad explaination of how to set up needed environment.
Also original [Apple documentation](https://developer.apple.com/library/ios/documentation/IDEs/Conceptual/AppDistributionGuide/ConfiguringPushNotifications/ConfiguringPushNotifications.html) can be helpful, it contains broad explanation of how to set up the environment.
![Notifications application screenshot](Screenshots/01.png "Notifications application screenshot")
## Authors
Bryan Costanich

Просмотреть файл

@ -8,10 +8,12 @@ products:
- xamarin
urlFragment: opengl
---
# OpenGL
# Xamarin.iOS OpenGL
A collection of samples for using OpenGL in Xamarin.iOS. These samples are Xamarin ports of samples found in objective-c at https://github.com/jlamarche/iOS-OpenGLES-Stuff
![OpenGL application screenshot](Screenshots/GLKBaseEffectDrawing.png "OpenGL application screenshot")
## GLKBaseEffectDrawing
Draws a rotating monkey's head from a list of vertices and normals using GLKit
@ -32,8 +34,3 @@ Draws a rotating 20-sided die using shaders and a texture image.
Adds directional lighting to OpenGLES20Example
![OpenGL application screenshot](Screenshots/GLKBaseEffectDrawing.png "OpenGL application screenshot")
## Authors
Timothy Risi

Просмотреть файл

@ -1,6 +1,6 @@
---
name: Xamarin.iOS - OpenGLES Sample
description: A simple example of using OpenGLES in a MonoTouch application. Preview
description: A simple example of using OpenGLES in a Xamarin.iOS application. Preview
page_type: sample
languages:
- csharp
@ -8,14 +8,8 @@ products:
- xamarin
urlFragment: openglessample
---
# OpenGLES Sample
# Xamarin.iOS OpenGLES Sample
A simple example of using OpenGLES in a MonoTouch application.
A simple example of using OpenGLES in a Xamarin.iOS application.
## Preview
![iPhone running OpenGLES sample](http://farm7.static.flickr.com/6136/5999292719_90550e7ed6.jpg)
## Authors
Miguel de Icaza
![iPhone running OpenGLES sample](Screenshots/OpenGLESSample.jpg)

Просмотреть файл

@ -8,14 +8,8 @@ products:
- xamarin
urlFragment: openglessample-gameview
---
# OpenGLES Sample using GameView
# Xamarin.iOS OpenGLES Sample using GameView
A simple example of using OpenGLES with a iPhoneOSGameView in a MonoTouch application.
## Preview
![iPhone running OpenGLES sample](http://farm7.static.flickr.com/6136/5999292719_90550e7ed6.jpg)
## Authors
Miguel de Icaza
![iPhone running OpenGLES sample](Screenshots/OpenGLESSample-GameView.jpg)

Просмотреть файл

@ -8,7 +8,7 @@ products:
- xamarin
urlFragment: openglscroller
---
# OpenGLScroller
# Xamarin.iOS OpenGLScroller
This is a port of the WWDC2012 sample application of the same name.
@ -17,5 +17,4 @@ A swipe gesture on the top of the screen will slide the 20 small cubes left or r
A tap gesture on any of the small cubes will cause them to change color and speed based on the large cube.
A tap gesture on the large cube will change its color and rotation speed.
Ported by: Peter Collins
![App showing boxes rendered in an OpenGL view](Screenshots/openglscroller.png)

Просмотреть файл

@ -1,6 +1,6 @@
---
name: Xamarin.iOS - PaintCode Demo
description: PaintCode (http://www.paintcodeapp.com) now supports C code generation for Xamarin MonoTouch. This sample app shows some PaintCode-generated...
description: PaintCode (http://www.paintcodeapp.com) now supports C code generation for Xamarin.iOS. This sample app shows some PaintCode-generated...
page_type: sample
languages:
- csharp
@ -8,9 +8,9 @@ products:
- xamarin
urlFragment: paintcode
---
# PaintCode Demo
# Xamarin.iOS PaintCode Demo
PaintCode (http://www.paintcodeapp.com) now supports C# code generation for Xamarin MonoTouch.
PaintCode (http://www.paintcodeapp.com) now supports C# code generation for Xamarin.iOS.
This sample app shows some PaintCode-generated elements:
@ -22,12 +22,5 @@ This sample app shows some PaintCode-generated elements:
* Random line-art
See also http://blog.xamarin.com/2012/06/06/meet-our-new-favorite-design-tool-paintcode/
![screenshot](https://github.com/xamarin/monotouch-samples/raw/master/PaintCode/Screenshots/BlueButton.png "BlueButton Example")
![screenshot](https://github.com/xamarin/monotouch-samples/raw/master/PaintCode/Screenshots/GlossyButton.png "GlossyButton Example")
## Authors
Craig Dunn
![screenshot](Screenshots/BlueButton.png "BlueButton Example")
![screenshot](Screenshots/GlossyButton.png "GlossyButton Example")

Просмотреть файл

@ -1,6 +1,6 @@
---
name: Xamarin.iOS - PassKit Sample
description: 'This sample demonstrates how to build a PassKit Companion App to interact with passes you have issued in a users Passbook. >NOTE: This sample...'
description: 'This sample demonstrates how to build a PassKit Companion App to interact with passes you have issued in a users Passbook...'
page_type: sample
languages:
- csharp
@ -8,12 +8,14 @@ products:
- xamarin
urlFragment: passkit
---
# PassKit Sample
# Xamarin.iOS PassKit Sample
This sample demonstrates how to build a PassKit Companion App to interact with passes you have issued in a users Passbook.
>NOTE: This sample doen't work out of the box, you need to setup provisioning profile for you app and create certicicate for pass singing.
> [!NOTE]
> This sample doesn't work out of the box, you need to setup provisioning profile for you app and create certificate for pass signing.
![screenshot](Screenshots/01-PassLibrary.png "PassLibrary")
## Instructions
@ -23,29 +25,31 @@ When you open this app, _it will not run_ because the solution requires the file
To use passes your app needs to be provisioned correctly, and you need to make some changes to the example pass to match your personal provisioning information:
* Create an AppId in the provisioning portal and enable `Wallet`
* Generate `Provisioning Profile` for your app
* Register new `iOS Pass Type ID`
* Generate Certificate for your just created `iOS Pass Type ID` via `Edit > Create Certificate`
* Download and install your certificate for pass
- Create an AppId in the provisioning portal and enable `Wallet`
- Generate `Provisioning Profile` for your app
- Register new `iOS Pass Type ID`
- Generate Certificate for your just created `iOS Pass Type ID` via `Edit > Create Certificate`
- Download and install your certificate for pass
**IMPORTANT:** Now you need to fix some files:
* `Entitlements.plist` and `Info.Plist` – fix `BundleIdentifier` and `PassTypeIdentifiers`
* `CouponBanana2.pass/pass.json` fix `passTypeIdentifier` and `teamIdentifier`
> [!IMPORTANT]
> Now you need to fix some files:
>
> - `Entitlements.plist` and `Info.Plist` – fix `BundleIdentifier` and `PassTypeIdentifiers`
> - `CouponBanana2.pass/pass.json` fix `passTypeIdentifier` and `teamIdentifier`
At this point you are ready to generate pass package. For this sample we provide a simple utility which create package for you (the **signpass** executable is included in this repo). Go to terminal and run:
```
```cmd
cd path/to/PassLibrary/sample
./signpass -p CouponBanana2.pass/ -c "Common_Name"
```
You can determine the correct value for `Common_Name` with **Keychain Access** app:
* Launch **Keychain Access** app
* Find the certificate which you installed a few steps ago
* **Select certificate > Right Click > Get Info**
* Here you are able to see `Common Name` - it could be something like `"Pass Type ID: pass.com.yourcompany.passkitnameyouchose"`
- Launch **Keychain Access** app
- Find the certificate which you installed a few steps ago
- **Select certificate > Right Click > Get Info**
- Here you are able to see `Common Name` - it could be something like `"Pass Type ID: pass.com.yourcompany.passkitnameyouchose"`
After running that command in the **Terminal**, you should be able to find **CouponBanana2.pkpass** in the same folder as the command was run.
@ -71,16 +75,15 @@ Go to Xamarin Studio - the solution should now include the **CouponBanana2.pkpas
If the Pass cannot be added in the app, verify the **CouponBanana2.pkpass** file exists (you generate it via the command line in the steps above). It should also have **Build Action: Bundle Resource** so that it is deployed with the app.
Also verify:
- App ID has **Wallet** enabled
- Pass Type ID was created correctly
- App Bundle ID and Pass Type ID are correctly entered.
- Provisioning Profile has been downloaded and installed.
- The correct provisioning profile is being used when the app is built.
# Further Reading
## Further Reading
Refer to the [Introduction to PassKit](http://docs.xamarin.com/ios/tutorials/Introduction_to_PassKit) documentation on the Xamarin website.
![screenshot](https://github.com/xamarin/monotouch-samples/raw/master/PassKit/Screenshots/01-PassLibrary.png "PassLibrary")
Refer to the [Introduction to PassKit](https://docs.microsoft.com/xamarin/ios/platform/passkit) documentation on the Xamarin website.
Also refer to Apple's [Passbook for Developers](https://developer.apple.com/passbook/) site.

Просмотреть файл

@ -8,7 +8,7 @@ products:
- xamarin
urlFragment: peekpopnavigation
---
# Implementing Peek and Pop
# Implementing Peek and Pop in Xamarin.iOS
This sample project demonstrates previewing content and providing quick shortcuts to functionality using Peek and Pop APIs. The app uses a table view to display a list of colors and tapping any row in the table navigates to a detail view controller showing the color. The app uses 3D Touch on the table view rows to allow users to peek at the content without placing it on the navigation stack.
@ -25,7 +25,3 @@ Xamarin.iOS 11.4+ and Xcode 10.0+.
## License
Xamarin port changes are released under the MIT license.
## Author
Ported to Xamarin.iOS by Mykyta Bondarenko

Просмотреть файл

@ -8,6 +8,8 @@ products:
- xamarin
urlFragment: pickercontrol
---
# Picker Controls
# Picker Controls in Xamarin.iOS
This sample shows how to create and use a UIPicker and UIDatePicker in Xamarin.iOS. It is the related sample for the [Picker](/guides/ios/user_interface/controls/picker/) guide.
This sample shows how to create and use a `UIPicker` and `UIDatePicker` in Xamarin.iOS. It is the related sample for the [Picker](https://docs.microsoft.com/xamarin/ios/user-interface/controls/picker) guide.
![App with a picker control](Screenshots/image4.png)

Просмотреть файл

@ -8,11 +8,11 @@ products:
- xamarin
urlFragment: pinchit
---
# PinchIt
# PinchIt for Xamarin.iOS
This is a port of the WWDC2012 sample of the same name
This sample provides an introduction to Collection Views, and illustrates
the use of a flow layout to pinch and move cells.
Ported by: Peter Collins
![App showing how to pinch a cell](Screenshots/Pinchit01.png)

Просмотреть файл

@ -19,4 +19,4 @@ time is the most convenient.
Note: You may get an error when deleting an event with the message "CADObjectGetRelatedObjects failed with error Error Domain=NSMachErrorDomain Code=268435459 "The operation couldnt be completed. (Mach error 268435459 - (ipc/send) invalid destination port)". This is a known Apple bug that does not interfere with the running of the sample.
Ported by: Peter Collins
![App showing dates with votes displayed](Screenshots/IMG_3171.PNG)

Просмотреть файл

@ -19,6 +19,8 @@ UIPopoverControllers are never presented at the same time.
Popovers are only supported on the iPad.
![Popovers application screenshot](Screenshots/Popovers1.png "Popovers application screenshot")
## Build Requirements
iOS 4.1 or later
@ -43,13 +45,6 @@ The detail view is also responsible for ensuring that there are never multiple p
PopoverContentViewController
A view controller that is the contents of the popovers in this sample. In this example, the view controller only contains a label with text.
## Copyright
## License
Xamarin port changes are released under the MIT license
![Popovers application screenshot](Screenshots/Popovers1.png "Popovers application screenshot")
## Authors
alexrp,
Craig Dunn

Просмотреть файл

@ -8,10 +8,11 @@ products:
- xamarin
urlFragment: printbanner
---
# PrintBanner
# PrintBanner for Xamarin.iOS
This Sample demonstrates how to print to a roll-fed AirPrint printer.
This sample is a port to apples WWDC2013 sample PrintBanner.
Link to Apples sample: https://developer.apple.com/downloads/index.action?name=WWDC%202013#
![Print dialog in app](Screenshots/screenshot-2.png)