iOS-7-Features-Tell-Apple-What-You-Want-Wish-List-2

Xamarin and iOS – Moving to iOS 7 and Xcode 5

Apple has now decreed that all apps submitted to the store must be built on XCode5 and iOS7.

And so it shall be…

So I’ve started building our Xamarin iPhone project against said platforms. Now there is a lot of redesign that should go on with moving to iOS 7, but to tell you the truth we went for a pretty flat design to begin with, so the first port of call is just migrating straight across and getting certified as an iOS 7 app.  Once we have that done, we can spend time taking advantage of more iOS 7 features

 

MjAxMy03NDY3YWM2NzFlNzdkYTgw

 

The transition has been surprisingly smooth and there have only been a few issues (so far).

1. Content disappearing behind Navigation Bar

I found in some places the content of my views were being pushed up underneath the navigation bar.   This is because in iOS 7 view controllers use full screen layout.  In my case I wasn’t going to redesign the UI at this point to handle things differently so to get around this I just set the value for EdgesForExtendedLayout to None in the ViewDidLoad of the UIViewControllers, like so:


public override void ViewDidLoad()
{
EdgesForExtendedLayout = UIRectEdge.None;

base.ViewDidLoad();

...

}

There is more information available on the Apple iOS 7 UI Transition Guide.

 

2. Button Labels being trimmed with ellipsis (…)

Now that buttons are so cool they don’t need chrome or borders anymore I noticed that I was getting some trimming of text happening on button labels. Like this:

Search-Ellipses

After much slapping of forehead I discovered that the cause was that I was setting the UILabel.Appearance.Font property in theAppDelegate’s FinishedLaunching .  This global change was enough for iOS 7 to think that C…cel looked much better than Cancel.  Get rid of that and viola, iOS 7 is happy because it has full control again ;-)

Search-Nice

3. Your UISwitch custom background images are gone!

Those pretty custom backgrounds you created for your UISwitch are no longer functional.  Not a biggy really, however, I also noticed that if your BackgroundColor of your UISwitch is set to UIColor.Clear you get a nice “Googely Eye” effect when you toggle your buttons.

UIToggle

Is it on, is it off… who can tell.  Anyway, looks like it’s time to bow down to iOS and let it run the show. So get rid of your UIColor.Clear!

 

I’ll let you know of any more issues I have as I do a basic port to iOS 7.  Till then anyone else got any other war stories they want to share?

 

 

Android-Army-1

Xamarin and Android – Specific Solutions to Specific Problems #4

 

It’s been a while but I’m finally back with another one of my recent discoveries while working with Xamarin and Android. We are at the pointy end of our project so it has been hard to find the time to blog but luckily now that I do have some, I also have a lot of material banked up. Stay tuned…

I have list view inside a scroll view and I want to be able to be able to scroll both depending on which one I am touching.

In order to support devices with small screens, sometimes I resort to lazy man’s responsive design. I wrap the whole layout in a ScrollView element. While this works fine most of the time it does have an interesting time dealing with child elements that are also scrollable. The one I run into the most is the existence of a ListView inside a ScrollView.

Continue reading…

whereswaldo2

"Find was stopped in progress" while performing search in Visual Studio

This issue has been plaguing me for some time and I usually just work around it but today I finally found a fix. It has happened in Visual Studio 2010, 2013 and today it started occurring in 2013 RC. I found a fix in this Microsoft Connect thread and thought I would blog it as a few of the other guys at work had also encountered it from time to time.

I don’t know if this is the “official” fix but the following worked for me:

1. Find in Files for any search string.

2. As soon as it starts searching spam Ctrl – Scroll Lock.

3. Win

iPhone-5-Android-Market

Xamarin and Android – Specific Solutions to Specific Problems #2

Welcome to the second post in my Specific Solutions to Specific Problems series. Hopefully somebody is getting some benefit out of these but even if nobody is reading it, the process is pretty cathartic anyway…

These are a handful of issues that I encountered in my second week on Monodroid. These are the solutions I discovered to my problems.

Continue reading…

angularjs

Getting a look into AngularJS, a link roundup – 1st September 2013

I recently had to do a technical evaluation of technology options for a new project/product that we’re embarking on. The project was to be a web application, and since we’re not really a ‘web’ shop our options were really open for what and how we were going to design and build this new system.

So with our options open we began to evaluate things like Backbone, knockout and Ember. However we wanted to try and stick with an MVVM-esk pattern… well this led me down a path of discovery with AngularJS. What we found was a really capable and fast moving world unlike anything I’ve seen for a long time!

Here are the most useful things on the inter-nerd, that will teach you the KEY concepts in a few days.

Continue reading…

Android-VS-Apple

Xamarin and Resource.Designer.cs

I am doing a lot of development using Xamarin for Android and while most of the time it works really well, there are a few circumstances where it acts a little weirdly.

The first is when naming resources. The Xamarin documentation states the following in a resource on their website:

Also, it’s important to note that while Android only supports lowercase filenames for resource items, Xamarin.Android is a bit more forgiving; it will support both uppercase and lowercase filenames.Xamarin

While this is true for most items it doesn’t work across the board.  Continue reading…

Xamarin Link Roundup – 24 Aug 2014

As usual, another Link Roundup of Xamarin / Mobile related links collected over the last week or so. Don’t forget if you have seen something cool that should be on the list, email me, comment or tweet me.

News, Webinars, Podcasts and Presentations

Cool Code

Components

Education

Other