background preloader

Monotouch

Facebook Twitter

Finding memory leaks in your apps

App Store promo codes without the hassle. Programmatic Panning and Zooming with a UIScrollView. Translating Objective-C adopts-protocol idioms to C# - Miguel's OSX and iOS blog. Sometimes when looking at Objective-C samples, you might run into code that adopts protocols and you wonder how to port that code to C#.

Translating Objective-C adopts-protocol idioms to C# - Miguel's OSX and iOS blog

It typically looks like this: @interface TransparentOverlay : UIView <UITableViewDelegate, UITableViewDataSource> { } The above means that the "TransparentOverlay" object subclasses UIView and adopts two protocols: UITableViewDataSource and UITableViewDelegate. The above does not really work with MonoMac or MonoTouch, since we mapped protocols into classes. In both bindings UITableViewDelegate and UITableViewDataSource are "model" classes. The real meat of this is that somewhere in the implementation of TransparentOverlay, a UITableView will be created, and both its delegate and its data source will be configured to point to the TransparentOverlay source, something like this: The adopted protocol allows you to perform the assignemnt there.

The equivalent code in C# needs to create a helper class that derives from the model.

Finding memory leaks in your apps

Using Azure Marketplace’s Bing Image Search on iOS with UICollec. SignalR. Azure Marketplace. Xamarin/Hitcents App Development. Using Azure Marketplace’s Bing Image Search on iOS with UICollectionView in C# « Mike's Dev Blog. The Windows Azure Marketplace now includes the Bing web service.

Using Azure Marketplace’s Bing Image Search on iOS with UICollectionView in C# « Mike's Dev Blog

Using the image search feature, combined with a UICollectionView, can be used to display images in a grid on iOS like this: Consuming the Bing service with Xamarin on iOS can be accomplished just like anywhere else C# is available. The UI here consists of a UICollectionView, using a UICollectionViewFlowLayout to achieve the grid display. Programming against a UICollectionView is very similar to using a UITableView, the big difference being that UICollectionView works with a layout class to achieve any layout you desire. iOS provides a very flexible UICollectionViewFlowLayout class that can be used when a line-based layout is needed. Mattt/shenzhen. Finding memory leaks in your apps - xamarin.

Introduction to PassKit. Passbook is an app for iPhones and iPod touches with iOS 6.

Introduction to PassKit

It stores and displays barcodes and other information to link customer transactions on their phone with the ‘real world’. Passes are generated by merchants and sent to the customer via email, URLs or from within a merchant’s own iOS app. Passbook stores and organizes all the Passes on a phone, and displays Pass reminders on the lock-screen depending on the date/time or the location of the device. This document introduces Passbook, using the Pass Kit API with Xamarin.iOS, and discusses how to implement Passes on your server. The Store Kit features discussed in this document require iOS 6 and Xcode 4.5, along with Xamarin.iOS 6.0. The key problem that Pass Kit solves is the distribution and management of barcodes. Buying movie tickets online – Customers are typically emailed a barcode that represents their tickets.

Pass Kit offers an alternative for each of these scenarios: Each piece of the ecosystem has a clearly defined role: Introduction to iOS 6. With iOS 6 and Xamarin.iOS 6, developers now have a wealth of capability at their disposal to create iOS applications, including ones that target iPhone 5.

Introduction to iOS 6

This document lists some of the more exciting new features that are available and links to articles for each topic. In addition it touches on a couple changes that will be important as developers move to iOS 6 and the new resolution of iPhone 5. Collection Views allow content to be displayed using arbitrary layouts. They allow easily creating grid-like layouts out of the box, while supporting custom layouts as well. For more information see, the Introduction to Collection Viewsguide.

Releases same-day support for iOS 6. Continuing our long history of delivering same-day updates for device platform upgrades, MonoTouch 6 is available today and includes support for all of the new iOS 6 features that will be running on millions of devices before the day is through.

releases same-day support for iOS 6

We have in-depth documentation on the new iOS 6 APIs as well as detailed release notes, but we thought we’d highlight a few of our favorites here: New Collection View control Collection Views bring rich layout support to iOS applications. An Introduction and Thoughts on Developing iOS Applications with MonoTouch. This blog post describes the creation of a simple Twitter search application for iOS, based on a similar application I wrote for Windows Phone a few months back.

An Introduction and Thoughts on Developing iOS Applications with MonoTouch

Get your MonoTouch apps ready for iPhone 5 / iOS 6 today! Helper Class for getting 16x9 Tall iPhone5+ images. Part 6 - Subscriptions and Reporting. Part 5 - Transactions and Verification. Part 4 - Purchasing Non-Consumable Products. Part 3 - Purchasing Consumable Products. Part 2 - Store Kit Overview and Retreiving Product Information. Part 1 - In-App Purchase Basics and Configuration. Miguel's OSX and iOS blog. This blog post discusses Xamarin's current plans to support the 32 and 64 bit frameworks in our products.

Miguel's OSX and iOS blog

When we first created the C# bridge to iOS with MonoTouch, we mapped the data types from Objective-C to their equivalent data types in C#. Since C# does not have an equivalent to "typedef" we also mapped type definitions into their underlying data types. This means that we mapped C types like int to System.Int32 (short: int) float to System.Single (short: float). This is because on .NET the int data type is defined to be a 32 bit integer, and long is always a 64 bit integer. Martinbowling/MonoTouchRoundProgress. MonoTouch 5.4. MonoTouch 5.4.x will be the last versions to support Mac OS X 10.6 (Snow Leopard).

MonoTouch 5.4

Future versions (5.5+) will require either OS X 10.7 (Lion) or OS X 10.8 (Mountain Lion). The following samples show some of the new features in MonoTouch 5.4: AudioQueueOfflineRenderDemoAn example demonstrating the Audio Queue offline rendering API. The sample produces LPCM output from an mp3 file, which is written to disk as a .caf file then subsequently played back to show the offline rendering is working as expected. BubbleCellThis example has been update to show how to use the new strongly typed notifications. MonoTouch and UIKit Thread Safety - Miguel's OSX and iOS blog. No major UI toolkit is thread safe.

MonoTouch and UIKit Thread Safety - Miguel's OSX and iOS blog

This means that these toolkits are not designed to have their exposed methods be invoked by multiple threads at the same time from multiple threads. The main reason is that building thread safe toolkits is both a very hard problem and can have very complicated semantics for the consumer of the toolkit. Developers typically use multiple threads in UI applications to offload tasks that would otherwise block the user interface. The work is offloaded to a background thread that can take as long as it wants or can perform various blocking operations like disk or network operations without affecting the interactive nature of the application. Build an iPad Application Using MonoTouch, C#, and .NET. Since its release in March 2010, the iPad has taken the world by storm.

Build an iPad Application Using MonoTouch, C#, and .NET

For more information on mobile development, see "Mobile Development Options for .NET Developers" and "Better Mobile Website Development Using the jQuery Mobile Library. " Each new iPad release has launched the device further and further into our lives. Here are some interesting facts that we have seen over the past few years along with some market share analysis: The school that my teenagers attend here in Knoxville, Tennessee, was the first school in the United States to integrate the iPad into its teaching program and its curriculum. Many schools have since followed suit. No matter how you slice the data, tablet usage is growing, and the iPad is currently leading the pack. iPad Programming Support. IOS charts, grids, developer tools, custom UI controls, iPhone, iPad. Last week we announced the release of the ShinobiControls MonoTouch Bindings (beta), which allow you to use our charts and grids within MonoTouch (C#) applications. In this blog post I'll show just how easy it is to create a simple application that displays the stocks in the UK FTSE-100 index and renders a chart for each.

In order to get started with MonoTouch development, you need a Mac, Xcode and MonoDevelop (the graphical IDE for MonoTouch development). You can find information regarding the required tools and where to find them on the Xamarin website. You'll also need a copy ShinobiControls, which are available as a trial download. Important iOS 6 information for MonoTouch users. We are hard at work updating MonoTouch for the upcoming iOS 6 release and have uncovered a critical issue with reference counting that can cause apps to crash when executed on iOS 6.

Apps built using Interface Builder from Xcode 3 with the [Connect] attribute are especially affected. For all apps, this issue can keep some view controllers in memory too long which may result in an app crash. Please recompile your app using MonoTouch 5.2.13 and submit the resulting binaries to Apple to avoid your app crashing with iOS 6.

Current MonoTouch subscribers can update to 5.2.13 through MonoDevelop or by signing in to Xamarin.com. For those customers without a current subscription, please upgrade to MonoTouch 5.2.13. Jzablocki/TouchDB-Mono. Redth/PushSharp. 2012-07-12_1049 - Shoerob. Test Studio Blog on Software Testing > Developing with MonoTouch? Test Studio for iOS just added full support for testing your apps! Building a Login Screen With Xamarin’s MonoTouch and XCode StoryBoard. Introduction I’ve been hard at work learning the MonoTouch framework from Xamarin recently. For those that don’t know, MonoTouch is a framework that runs on top of the Apple XCode development environment that allows you to essentially use the .net framework as your programming language of choice instead of objective C (I hope I got that right).

MonoTouch Tutorial: Display Tabular Data in iPhone and iPad Apps. Build Mapping and Location Services into Your MonoTouch iPhone Apps. Broadcast Your iPhone or iPad's Screen Live on the Internet. iPhone Cloud Based Architecture, Part 1. Aug 27 2012 Background. Using SignalR in MonoTouch and Mono for Android Apps « Greg Shackles. If you haven’t checked out SignalR yet, what are you waiting for? SignalR is a .NET library that makes it really easy to build realtime applications. The server can be hosted inside a web application, or even in a simple console app. On the client side, you can access the server from the browser through JavaScript, a console application, or even from mobile apps. Working with Images and Animation on the iPhone and iPad with .NET and C#: Part 1. Working with Images and Animation on the iPhone and iPad with .NET and C#: Part 2.

Guide to Building iOS Applications with MonoTouch for the .NET/C# Developer. ConceptDev (Craig Dunn's blog): Image Metadata with MonoTouch. Introduction to MVC in Monotouch – Part 1: The basics. Model-View-Controller, or MVC, is a design pattern that is often used in creating mobile applications. In an MVC application, the major building blocks of the application are either model objects, view objects, or controller objects. Model objects are used to represent the data in your application. If designed appropriately, model objects can be reused in multiple projects. ConceptDev (Craig Dunn's blog): In-app purchase vulnerability & MonoTouch. Earlier this year (around July) Apple announced that a vulnerability had been discovered in the in-app purchasing mechanism, which they discuss here.

Matt Galligan - How To: Share An iPhone Screen Live On the Internet. Introduction to Newsstand - Xamarin. Xamarin-samples/InAppPurchase at master · conceptdev/xamarin-samples. APNS-Sharp/JdSoft.Apple.AppStore at master · Redth/APNS-Sharp. Push Notifications – Introduction to PushSharp Seminar. Dev Rocket - Photoshop panel plugin for iOS developers. Latest iOS 6 Beta Makes App Store Updates Super Snappy. App updates appear to be snappier in the latest iOS 6 beta. While Apple’s latest iOS 6 beta didn’t make any significant changes to the platform’s front-end — aside from removing the YouTube app — it did make some changes under the hood. In addition to “bug fixes,” it appears the fourth beta has made some improvements to App Store download times that make updating your apps super snappy.

As shown in the video below — spotted by Brazilian site BlogdoiPhone — an update to Apple’s Podcasts app on the iPhone takes significantly less time to download and install than it does on iOS 5.1.1.