Giter Site home page Giter Site logo

xamarin / ios-samples Goto Github PK

View Code? Open in Web Editor NEW
1.6K 258.0 1.9K 1.43 GB

Xamarin.iOS sample apps

Home Page: http://docs.microsoft.com/xamarin/ios/

License: Other

C# 97.52% Shell 0.08% Objective-C 1.47% HTML 0.13% Makefile 0.22% F# 0.15% Metal 0.18% GLSL 0.17% Rich Text Format 0.10%
ios xamarin-ios watchkit watchos tvos xamarin

ios-samples's Introduction

iOS/tvOS/watchOS Samples

The samples in this directory use the Xamarin.iOS toolchain and Xamarin project files to illustrate the basics of how to work with iOS and the SDK. Visit the iOS Sample Gallery to download individual samples.

License

See the repo's license file and any additional license information attached to each sample.

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, the iOS 9 features live in the ios9 directory and the iOS 10 feature lives in the ios10 directory, and so on for ios11, ios12, ios13...

watchOS

watchOS samples are in the watchOS directory, including:

NOTE: The WatchKit samples are deprecated, please refer to these samples in the watchOS directory.

tvOS

tvOS samples are in the tvos directory, including the tvOS UI Catalog.

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 the sample galleries here:

Sample GitHub Repositories

These sample galleries are populated by samples in these 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 start by creating an issue with your proposal.

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 on each platform (preferably a screen shot for every page or every major piece of functionality). For an example of this, see ios11/MapKitSample.

  • Readme - a README.md file that explains the sample, and contains metadata to help customers find it. For an example of this, see ios11/MapKitSample. The README file should begin with a YAML header (delimited by ---) with the following keys/values:

    • name - must begin with Xamarin.iOS -

      • description - brief description of the sample (< 150 chars) that appears in the sample code browser search

      • page_type - must be the string sample.

      • languages - coding language/s used in the sample, such as: csharp, fsharp, vb, objc

      • products: should be xamarin for every sample in this repo

      • urlFragment: although this can be auto-generated, please supply an all-lowercase value that represents the sample's path in this repo, except directory separators are replaced with dashes (-) and no other punctuation.

      Here is a working example from ios11/MapKitSample README raw view.

      ---
      name: Xamarin.iOS - MapKit Sample
      description: "Demo of new iOS 11 features in MapKit, grouping and splitting markers based on zoom-level. Tandm is a fictional bike sharing... (iOS11)"
      page_type: sample
      languages:
      - csharp
      products:
      - xamarin
      urlFragment: ios11-mapkitsample
      ---
      # Heading 1
      
      rest of README goes here, including screenshot images and requirements/instructions to get it running

      NOTE: This must be valid YAML, so some characters in the name or description will require the entire string to be surrounded by " or ' quotes.

  • Buildable solution and .csproj file - the project must build and have the appropriate project scaffolding (solution + .csproj files).

This approach ensures that all samples integrate with the Microsoft sample code browser.

A good example of this stuff is here in the iOS 11 maps sample: https://github.com/xamarin/ios-samples/tree/master/ios11/MapKitSample

For a cross-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 macOS/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 macOS/Linux, respectively). These must be run from a Bash shell (i.e. a terminal on macOS/Linux or the Git Bash terminal on Windows).

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

ios-samples's People

Contributors

b099l3 avatar bopang avatar bubudrc avatar chrisblackman avatar chrisntr avatar conceptdev avatar dylankelly5 avatar gdmarquez90 avatar gourikumari avatar iherrera avatar joelmartinez avatar jstedfast avatar kmullins-xam avatar lobrien avatar marek-safar avatar migueldeicaza avatar mikebluestein avatar mykyta-bondarenko avatar nodoid avatar olegoid avatar pjbeaman avatar pjcollins avatar rolfbjarne avatar spouliot avatar stephen-hawley avatar supernova-eng avatar timeyoutakeit avatar vchelaru avatar vincentdondain avatar vyedin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

ios-samples's Issues

Does the SimpleTextInput sample work for voice dictation since iOS 8?

I made a slightly modified version of SimpleTextInput and it used to work with voice dictation.

Lately, I think since iOS 8, InsertText is still getting called by voice dictation actions, but strings of spaces-only are getting passed to the: string text parameter, not the actual text spoken (which did used to happen). textView.text is however still getting set, sometimes and somehow, I'm not clear how.

NewBox Sample occasionally throws exception about code needing to run on the UIThread in FileProvider ctor.

Not sure why this only happens sometimes but when launching the NewBox app to a simulator this line:

NSFileManager.DefaultManager.CreateDirectory (DocumentStorageUrl, true, null, out error);

in FileProvider.cs (in the ctor) occasionally throws:

UIKit.UIKitThreadAccessException: UIKit Consistency error: you are calling a UIKit method that can only be invoked from the UI thread.
at UIKit.UIApplication.EnsureUIThread () [0x00023] in /Users/builder/data/lanes/2689/962a0506/source/maccore/src/UIKit/UIApplication.cs:86
at UIKit.NSFileProviderExtension.get_DocumentStorageUrl () [0x00000] in /Users/builder/data/lanes/2689/962a0506/source/maccore/src/build/ios/native/UIKit/NSFileProviderExtension.g.cs:248
at NBoxFileProvider.FileProvider..ctor () [0x00017] in /Users/apple/Documents/Xamarin/XamSupport/NewBox/NBoxFileProvider/FileProvider.cs:19

I resolved it by using InvokeOnMainThread:

        InvokeOnMainThread (() => {
            NSFileManager.DefaultManager.CreateDirectory (DocumentStorageUrl, true, null, out error);

        });

Runtime exception in the new BindingSample sample for Unified API

Followed the steps mentioned in the readme: executed make command and ran the application. Got the following exception:

ObjCRuntime.RuntimeException: The registrar found a signature mismatch in the method 'XMBindingLibrarySample.XMUtilities.Multiply' - the selector 'multiply:and' indicates the method takes 1 parameters, while the managed method has 2 parameters.

Application Terminated

I am running Xamarin Studio on Mac.

In the iOS project PhoneWord (MultiScreen)

There is a line as given below in the file CallHistoryController.cs.May i know what is CallHistoryCell and should i need to create a Xib file or not required? Please reply.

static NSString callHistoryCellId = new NSString ("CallHistoryCell");

Error Loading Any tvOS Samples

I'm running the latest alpha of Xamarin Studio and receiving "Could not load project 'Hello-tvOS/Hello-tvOS.csproj' with unknown item type '{06FA79CB-D6CD-4721-BB4B-1BD202089C55}'" error message.

I'm running Xamarin Studio 5.10 (build 860), from the alpha channel. I was hoping Alpha would pull in what I needed. Anybody else having this issue?

CoreMidi MessageReceived Error

I am getting a not implimented error on the MidiPort MessageReceived handler in the Xamarin CoreMidi sample app. I am running iOS 6.0.1 on my iPad. Messages are being generated via network interface from Logic Pro (using the caps lock keyboard). Let me know if you need additional details.

thanks,
mark

ViewTransitions Project file error

The ViewTransitions.csproj does not load, MD gives a error:

System.InvalidOperationException: Unknown solution item type.
at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.CreateSolutionItem (System.String language, System.String typeGuids, System.String itemType, System.Type itemClass) [0x00000] in :0
at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectHandler.Load (IProgressMonitor monitor, System.String fileName, System.String language, System.Type itemClass) [0x00000] in :0
at MonoDevelop.Projects.Extensions.DotNetProjectNode.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, System.String itemGuid) [0x00000] in :0
at MonoDevelop.Projects.Formats.MSBuild.MSBuildProjectService.LoadItem (IProgressMonitor monitor, System.String fileName, System.String typeGuid, System.String itemGuid) [0x00000] in :0
at MonoDevelop.Projects.Formats.MSBuild.MSBuildFileFormat.ReadFile (FilePath file, System.Type expectedType, IProgressMonitor monitor) [0x00000] in :0
at MonoDevelop.Projects.ProjectService.ReadFile (IProgressMonitor monitor, System.String file, System.Type expectedType, MonoDevelop.Projects.FileFormat& format) [0x00000] in :0
at MonoDevelop.Projects.ProjectService+c__AnonStoreyAC.<>m__6F (IProgressMonitor , System.String ) [0x00000] in :0
at MonoDevelop.Projects.DefaultProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] in :0
at MonoDevelop.Autotools.MakefileProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.CompiledAssemblyExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName) [0x00000] in :0
at MonoDevelop.Projects.ProjectServiceExtension.LoadSolutionItem (IProgressMonitor monitor, System.String fileName, MonoDevelop.Projects.Extensions.ItemLoadCallback callback) [0x00000] in :0
at MonoDevelop.Projects.ProjectService.ReadSolutionItem (IProgressMonitor monitor, System.String file) [0x00000] in :0
at MonoDevelop.Projects.SolutionFolder.AddItem (IProgressMonitor monitor, System.String filename, Boolean createSolutionConfigurations) [0x00000] in :0
at MonoDevelop.Ide.ProjectOperations.AddSolutionItem (MonoDevelop.Projects.SolutionFolder folder, System.String entryFileName) [0x00000] in :0
at MonoDevelop.Ide.ProjectOperations.AddSolutionItem (MonoDevelop.Projects.SolutionFolder parentFolder) [0x00000] in :0

SimpleCollectionView can not reuse cells

According to this guide from Xamarin's guide, I think the sample with SimpleCollectionView should reuses cell but it doesn't.

I ran the demo with flowLayout, it always call to AnimalCell' constructor to init new Cell instead of reuse from reusable cell.

Touches_GestureRecognizers with unknown item type

The Touches_GestureRecognizers project doesn't load in MonoDevelop 2.6. It gives me the following error:

Could not load project '/Users/Emanuele/Projects/xamarin-monotouch-samples/Touches/Touches_GestureRecognizers/Touches_GestureRecognizers/Touches_GestureRecognizers.csproj' with unknown item type '{6BC8ED88-2882-458C-8E55-DFD12B67127B};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}'

Many of the samples in iOS8 and iOS9 retain the Apple copyright stamp.

Was digging through old mail when I saw that this issue had been brought up ages ago, but clearly remembered seeing it just that day. I've dug around since then and, sure enough, Apply copybugs are everywhere in iOS[8|9] directories. Might be elsewhere, too. These should probably be removed, and whatever translation tool is being used should be updated to not put the copybugs in.

Cheers!

Sound sample doesnt work in iOS 8

The sound example which I am using for my app is no longer working with the latest iOS SDK 8.

The PrepareToRecord method returns false and the app errors out.

Any updates coming?

FourInARow incorrectly returns null from Board.Copy(NSZone), which causes GKMinMaxStrategist to fail

In FourInARow, Board.Copy(NSZone) cannot return null.

If it returns null, the GKMinMaxStrategist does not properly evaluate potential moves.

To reproduce: add a static counter to Board.ScoreForPlayer and you will see that it is only called a single time.

If you rewrite Board.Copy(NSZone) to return a clone, it will be called dozens of times, similarly as to how it is called in Apple's version.

Partial solution: Board.Copy(NSZone) should return a clone of this, similar to Apple's ๐Ÿ‘

  • (__nonnull id)copyWithZone:(nullable NSZone *)zone {
    AAPLBoard *copy = [[[self class] allocWithZone:zone] init];
    [copy setGameModel:self];
    return copy;
    }

Problem: When I did this, it appears that several AI moves are executed simultaneously.

Error in .xib file

Hello,
When I open and build monocatalog-md solution (and all other monodevelop solutions),
50% of the xib file generate this error on build process :
XXXXViewController.xib: Error: Unknown char: . (monocatalog)
I use new version of MonoDevelop v 2.4 (SVN revision 159698).
Do you have an idea ? Could you help me ?
Thanks
Julien

Zooming PDF Viewer crash of SIGSEGV

I have found that the Zooming Pdf Viewer sample crashes if you zoom in and out really fast and often.

After experiencing this issue on an app where I implemented this sample I came to the conclusion that the TiledLayerDelegate : CALayerDelegate class is the one responsible. To be more precise it is the Dispose(bool is disposing) method the one causing it. I ran my app for about 30 minutes switching pages, zooming in and out multiple times and not once did it crashed after I did the following to the Dispose method.

for more details refer to this post from stackoverflow

    ` class TiledLayerDelegate : CALayerDelegate{       
    TiledPdfView view;
    CGRect bounds;

    public TiledLayerDelegate (TiledPdfView view)
    {
        try {
            this.view = view;
            bounds = view.Bounds;
        } catch(Exception e) {
            System.Console.Write (e);
        }
    }

    public override void DrawLayer (CALayer layer, CGContext context)
    {
        // fill with white background
        context.SetFillColor(1.0f, 1.0f, 1.0f, 1.0f);
        //context.SetStrokeColor (0.18f, 0.37f, 0.50f, 1.0f);
        //layer.BackgroundColor = UIColor.FromRGBA(0.87f, 0.93f, 1.0f, 0.5f).CGColor;
        context.FillRect (bounds);
        context.SaveState ();

        // flip page so we render it as it's meant to be read
        context.TranslateCTM (0.0f, bounds.Height);
        context.ScaleCTM (1.0f, -1.0f);

        // scale page at the view-zoom level
        context.ScaleCTM (view.Scale, view.Scale);
        context.DrawPDFPage (view.Page);
        context.RestoreState ();
    }

    protected override void Dispose (bool disposing)
    {
        try{
            view = null;
            GC.Collect (2);
            //base.Dispose (disposing);
        }catch(Exception e) {
            //System.Console.Write(e);
        }
    }

}`

AstroLayout

Upon trying to build AstroLayout I get about 84 build errors. A lot of missing assembly references.

Class
UILayoutGuide

Methods:
SetIdentifier which should be attached to NSLayoutConstraint.

Properties:
HeightAnchor on UIImageView
CenterXAnchor on UIImageView
WidthAnchor on UIImageView

What am I missing?

Don't call base in PrepareForSegue in CloudCaption sample

The CloudCaptions [1] sample throws an error due to a NullReferenceException in PrepareForSegue when you select the option to "Select from Cloudkit".

When you choose "Select from CloudKit", this is the method that is called:

UIAlertAction selectExisting = UIAlertAction.Create (selectButton, UIAlertActionStyle.Default, action => {
PerformSegue("selectExisting", null);
});

As you can see, null is passed in for the "sender" argument to the PerformSegue call, which triggers the PrepareForSegue method with those arguments, IOW null is being passed in as the sender. Anyway, they issue is that you should not need to call base in this override. IOW, just remove this line in the PrepareForSegue method:

base.PrepareForSegue (segue, sender);

According to Apple's docs: "The default implementation of this method does nothing."
so there is no need to call it.

[1] https://docs.xamarin.com/samples/monotouch/ios8/CloudCaptions/

MonoCatalog sample app shows blank home table

If I get the latest code and try to run the solution in MonoCatalog-MonoDevelop I get a tableview that has no items in it. It seems like GetCell() is never called on DataSource.

I'm currently on the beta channel, not sure if that has anything to do with it.

Crash in QuickContacts sample at AddressBook.ABPerson.FirstName in iOS 8

Hi. I have been experiencing a crash in my app when I select a contact from the address book in the simulator. Iโ€™m getting a similar crash when I use the QuickContacts sample (http://developer.xamarin.com/samples/monotouch/ios8/QuickContacts/). These are the steps after starting the QuickContacts app in the simulator:

  1. Select Display Picker
  2. Select John Appleseed
  3. Select the first mobile number
  4. The app crashes with the stack trace below

Has anyone else experienced a similar problem? It there a workaround? Any help would be much appreciated.

This is my Xamarin setup:
Xamarin Studio
Version 5.9.3 (build 1)
Runtime:
Mono 4.0.1 ((detached/ed1d3ec)
GTK+ 2.24.23 (Raleigh theme)

Package version: 400010044

Apple Developer Tools
Xcode 6.3.2 (7718)
Build 6D2105

Xamarin.iOS
Version: 8.10.1.64 (Indie Edition)
Hash: e6ebd18
Branch: master
Build date: 2015-05-21 21:55:09-0400

Stack Trace:
2015-06-04 13:30:50.664 QuickContacts[1322:44259] critical: Stacktrace:

2015-06-04 13:30:50.664 QuickContacts[1322:44259] critical: at <0xffffffff>
2015-06-04 13:30:50.664 QuickContacts[1322:44259] critical: at (wrapper managed-to-native) AddressBook.ABRecord.ABRecordCopyValue (intptr,int) <IL 0x0002e, 0xffffffff>
2015-06-04 13:30:50.686 QuickContacts[1322:44259] critical: at AddressBook.ABRecord.CopyValue (int) [0x00000] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/AddressBook/ABRecord.cs:190
2015-06-04 13:30:50.687 QuickContacts[1322:44259] critical: at AddressBook.ABRecord.PropertyToString (int) [0x00000] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/AddressBook/ABRecord.cs:214
2015-06-04 13:30:50.687 QuickContacts[1322:44259] critical: at AddressBook.ABPerson.get_FirstName () [0x00000] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/AddressBook/ABPerson.cs:709
2015-06-04 13:30:50.687 QuickContacts[1322:44259] critical: at QuickContacts.QuickContactsViewController.HandlePerformAction2 (object,AddressBookUI.ABPeoplePickerPerformAction2EventArgs) [0x00007] in /Users/MChipeta/Downloads/QuickContacts/QuickContacts/QuickContactsViewController.cs:220
2015-06-04 13:30:50.688 QuickContacts[1322:44259] critical: at AddressBookUI.ABPeoplePickerNavigationController.OnPerformAction2 (AddressBookUI.ABPeoplePickerPerformAction2EventArgs) [0x00012] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/AddressBookUI/ABPeoplePickerNavigationController.cs:232
2015-06-04 13:30:50.688 QuickContacts[1322:44259] critical: at AddressBookUI.InternalABPeoplePickerNavigationControllerDelegate.DidSelectPerson (AddressBookUI.ABPeoplePickerNavigationController,AddressBook.ABPerson,int,int) [0x0002e] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/AddressBookUI/ABPeoplePickerNavigationController.cs:128
2015-06-04 13:30:50.688 QuickContacts[1322:44259] critical: at (wrapper runtime-invoke) .runtime_invoke_void__this___object_object_int_int (object,intptr,intptr,intptr) <IL 0x00082, 0xffffffff>
2015-06-04 13:30:50.688 QuickContacts[1322:44259] critical: at <0xffffffff>
2015-06-04 13:30:50.689 QuickContacts[1322:44259] critical: at (wrapper managed-to-native) UIKit.UIApplication.UIApplicationMain (int,string[],intptr,intptr) <IL 0x000ae, 0xffffffff>
2015-06-04 13:30:50.690 QuickContacts[1322:44259] critical: at UIKit.UIApplication.Main (string[],intptr,intptr) [0x00005] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/UIKit/UIApplication.cs:63
2015-06-04 13:30:50.690 QuickContacts[1322:44259] critical: at UIKit.UIApplication.Main (string[],string,string) [0x00038] in /Users/builder/data/lanes/1503/e6ebd18b/source/maccore/src/UIKit/UIApplication.cs:47
2015-06-04 13:30:50.690 QuickContacts[1322:44259] critical: at QuickContacts.Application.Main (string[]) [0x00008] in /Users/MChipeta/Downloads/QuickContacts/QuickContacts/Main.cs:17
2015-06-04 13:30:50.690 QuickContacts[1322:44259] critical: at (wrapper runtime-invoke) .runtime_invoke_void_object (object,intptr,intptr,intptr) <IL 0x00060, 0xffffffff>
2015-06-04 13:30:50.691 QuickContacts[1322:44259] critical:
Native stacktrace:

2015-06-04 13:30:50.691 QuickContacts[1322:44259] critical:
Got a SIGSEGV while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries
used by your application.

ImageProtocol sample seems broken(Xamarin.iOS v.6.2.7.1)

Hi,
I built the ImageProtocol sample with X.iOS 6.2.7.1 - XCode 4.6.3 - IPhoneSimulator 6.1 and after launch WebView shows just clear white area. No errors while loading test.html are pushed through UIWebView's LoadError event. Seems that ImageProtocol GetCanonicalRequest&StartLoading methods never called. Port of this sample code to obj-c works as expected.

Any help would be appreciated.

ios8 MotionActivityDemo is not working

I'm trying to run MotionActivityDemo on iOS 10 (iphone SE) and i get following stack trace.
New Xamarin Studio version (Community) , 6.1.1 build 15

2016-10-17 17:20:06.355 MotionActivityDemo[1189:871273] critical: 0 MotionActivityDemo 0x00076f11 mono_handle_native_sigsegv + 240
2016-10-17 17:20:06.355 MotionActivityDemo[1189:871273] critical: 1 libsystem_platform.dylib 0x1ac2b26d _sigtramp + 24
2016-10-17 17:20:06.355 MotionActivityDemo[1189:871273] critical: 2 libsystem_kernel.dylib 0x1ab77d8f + 64
2016-10-17 17:20:06.355 MotionActivityDemo[1189:871273] critical: 3 libsystem_kernel.dylib 0x1ab77dd9 system_set_sfi_window + 0
2016-10-17 17:20:06.355 MotionActivityDemo[1189:871273] critical: 4 TCC 0x1d280e85 + 228
2016-10-17 17:20:06.355 MotionActivityDemo[1189:871273] critical: 5 TCC 0x1d280da1 + 0
2016-10-17 17:20:06.355 MotionActivityDemo[1189:871273] critical: 6 TCC 0x1d28357b + 276
2016-10-17 17:20:06.355 MotionActivityDemo[1189:871273] critical: 7 libxpc.dylib 0x1ac6115f + 46
2016-10-17 17:20:06.355 MotionActivityDemo[1189:871273] critical: 8 libxpc.dylib 0x1ac61101 + 26
2016-10-17 17:20:06.355 MotionActivityDemo[1189:871273] critical: 9 libdispatch.dylib 0x1aa8649b + 604
2016-10-17 17:20:06.356 MotionActivityDemo[1189:871273] critical: 10 libdispatch.dylib 0x1aa87a91 + 378
2016-10-17 17:20:06.356 MotionActivityDemo[1189:871273] critical: 11 libdispatch.dylib 0x1aa878b7 + 106
2016-10-17 17:20:06.356 MotionActivityDemo[1189:871273] critical: 12 libsystem_pthread.dylib 0x1ac2d947 _pthread_wqthread + 1168
2016-10-17 17:20:06.356 MotionActivityDemo[1189:871273] critical: 13 libsystem_pthread.dylib 0x1ac2d49c start_wqthread + 8
#2016-10-17 17:20:06.356 MotionActivityDemo[1189:871273] critical:

Got a SIGABRT while executing native code. This usually indicates
a fatal error in the mono runtime or one of the native libraries

used by your application.

Inconsistent licensing

README.md says:

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

While LICENSE says:

"All of the samples in this directory are licensed under the terms of the MIT X11 license"

Which one is it?

The iOS app UI snapshot is not updated when the Background task completes

If using the iOS Background upload or download, there is a CompletionHandler that must be called - it updates the APP snapshot that users see when switching apps. However, my experience with this method is that when the task completes in the background, the app screenshot is NOT updated.

How would we modify this BackgroundExecution example to support updating the app screenshot in the background?

Found bug - you code does not return shader logs

You call getprograminfolog instead of getshaderinfolog. here's the updated function (found in GLProgram.cs) that fixes the bug:

string getLog (int obj) {
  string log;
  if (GL.IsShader( obj )) {
    log = GL.GetShaderInfoLog( obj );
  } else {
    log = GL.GetProgramInfoLog (obj);
  }

  return log;
}

Certain types of pdfs are not visible .

Using the Zoomable pdf viewer worked great at first, but then I noticed a small subsect of pdf that can't be display. I Looked around the code and the one thing I noticed is that CGPDFDocument is reading the file just fine, but when it is time to create the subsampling image the view shows a white page.

I exported the pdfs to pdf on my mac and now the file is bigger and they can be view on the device. Is it a compression issues? or is the formatting for the original pdf different?

// make the initial view 'fit to width'
            CGRect pageRect = page.GetBoxRect (CGPDFBox.Media);
            //scale = Frame.Width / pageRect.Width;
            scale = Frame.Width / pageRect.Width;
            pageRect.Size = new CGSize (pageRect.Width * scale , pageRect.Height * scale);

            // create bitmap version of the PDF page, to be used (scaled)
            // when no other (tiled) view are visible
            UIGraphics.BeginImageContext (pageRect.Size);
            CGContext context = UIGraphics.GetCurrentContext ();
            //CGColorSpace colorSpace = CGColorSpace.CreateDeviceRGB();
            //CGBitmapContext context = new CGBitmapContext(null, (int)pageRect.Size.Width, (int)pageRect.Size.Height, 8, (int)pageRect.Size.Width * 4, colorSpace , CGImageAlphaInfo.PremultipliedLast);

            // fill with white background
            context.SetFillColor (1.0f, 1.0f, 1.0f, 1.0f);
            context.FillRect (pageRect);
            context.SaveState ();

MediaPlayer sample - Not working??

Hi,
I built the MediaPlayer sample with MT 4.0 / XCode 4.0 / ioS 4.3 and when I click "Local" and "Play Movie" nothing happens.

The console spits out the URL for the movie, then says "Content Preload Finished"... No movie, on Simulator or Phone?

Am I doing something wrong?

Audio Samples Not Working

I am looking to work with audio and many of the iOS samples are working with xcode 6.

avTouch - XIB has an error won't compile
converter demo - never finishes rendering (I didn't bother debugging)
APTapQueue - I can't get any sound to play (although it looks like it's processing data)

maybe it's just me, but these are kind of old and might need updating.

In WatchKitCatalog sample, remove Peter Beaman's signing identity from the .csproj files

If you look in
monotouch-samples/WatchKit/WatchKitCatalog/WatchkitExtension/WatchkitExtension.csproj
monotouch-samples/WatchKit/WatchKitCatalog/WatchKitCatalog/WatchKitCatalog.csproj
and
monotouch-samples/WatchKit/WatchKitCatalog/WatchApp/WatchApp.csproj

You will see that the CodeSign key is set to:
iPhone Distribution: Peter Beaman (ZYWNCWEKU5)

should be:
iPhone Developer
or
iPhone Distribution

as the defaults.
in the Release|iPhone and/or AppStore|iPhone configurations. This might cause some confusion for customers working from this sample when they build for Release or AppStore iPhone configurations.

LazyTableImageAsync

Should add public override UIWindow Window { get; set; } to AppDelegate to make it work !!

Reminder is not working

I tried several time to use this sample to add reminder in my app but reminder is not working .

BindingSample is incomplete

The binding capabilities of Xamarin/MonoTouch are a key feature for developers using third-party iOS SDKs, typically written in Obj-C. Very little Obj-C code is presented in the official docs to correspond to the C# example code, which presents problems for developers using Xamarin who have not previously worked in Obj-C.

It would be great if the monotouch-samples/BindingSample project were more of a complete demonstration of binding to all kinds of Obj-C constructs, as outlined in the official docs, with corresponding Obj-C code for the C# binding examples (perhaps have the Obj-C definitions in comments before the C# code that binds to them, for comparison).

change track monotouch-samples / StreamingAudio

How would you change the StreamingPlayback to start playing another track? I have tried a singleton wrapper around StreamingPlayback which disposes and creates a new StreamingPlayback when tracks change but this causes memory/GC issues on the phone.

Would it be possible to pass in a new stream? Can you update the example please as, without being able to change tracks, the player is not very useful.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.