August 2015 - wiky apps

Software Development, Games Development, Mobile Development, iOS Development, Android Development, Window Phone Development. Dot Net, Window Services,WCF Services, Web Services, MVC, MySQL, SQL Server and Oracle Tutorials, Articles and their Resources

Saturday, August 22, 2015

Reference from UITableViewCell to parent UITableView?

Store a weak reference to the tableView in the cell, which you'd set in -tableView:cellForRowAtIndexPath: of your table's dataSource...
Read More

How to prioritize gesture recognizers and touches in a UIView

It sounds like you need: swipeUpTwoFinger.delaysTouchesBegan = YES;  I guess you came to this post by searching similar kind of issues in an...
Read More

Swift : How to Rotate a UIImage 90 degrees?

In Swift and Objective-C , the easiest way (and thread safe too) is to do: //assume that the image is loaded in landscape mode from disk UI...
Read More

Swift : How to calculate a person's age from their birth date in NSDate format

In Swift , here is a class method extension to NSDate that calculates a person's age given their birthday in NSDate format: extension NS...
Read More

The model backing the context has changed since the database was created.

One possible solution is to add Database.SetInitializer<YourDbContext>(null); in the constructor of YourDbContext. I guess you came to...
Read More

How to filter NSArray in Swift?

Here is what you can do Swift version: let resultPredicate = NSPredicate(format: "name contains[c] %@", searchText) self.filteredU...
Read More

Could not load type MvcApplication

To fix this, you have to change the output path in the build tab to bin\ I guess you came to this post by searching similar kind of issues i...
Read More

How to Get Name of the Member (Property Name, etc.) of a .NET Class

Consider the following sample class: public class Person() { public int  Person Id { get; set; } public string  Person Name { get; set; ...
Read More

Monday, August 17, 2015

How To improve ASP.NET MVC Application Performance

A compiled list of possible sources of improvement are below: General Make use of a profiler to discover memory leaks and performa...
Read More

Which version of MVC am I using?

Open web.config file and find the System.Web.Mvc assembly definition: assembly="System.Web.Mvc, Version=3.0.0.0 ..." It...
Read More

How to convert a decimal number to binary in Swift?

You can convert the decimal value to a human-readable binary representation using the String initializer that takes a radix parameter: ...
Read More

Swift - Integer conversion to Hours/Minutes/Seconds

Define func secondsToHoursMinutesSeconds (seconds : Int) -> (Int, Int, Int) {   return (seconds / 3600, (seconds % 3600) / 60, (...
Read More

Convert Int to String in Swift

Converting Int to String: let x : Int = 42 var myString = String(x) And the other way around - converting String to Int: let ...
Read More

Does Swift support implicit conversion?

There is no implicitly cast in Swift. Easy way of conversion in swift is using constructor of particular type. Like if you want t...
Read More

Swift - How to convert String to Double

You can simply bridge it like this: (swiftString as NSString).doubleValue I guess you came to this post by searching similar kin...
Read More

Convert Float to Int in Swift

You can convert Float to Int in Swift language such like, var myIntValue:Int = Int(myFloatValue) println "My value is \(myIntV...
Read More

What is the difference between -viewWillAppear: and -viewDidAppear:?

In general, this is what I do: 1) ViewDidLoad - Whenever I'm adding controls to a view that should appear together with the view,...
Read More

Looking to understand the iOS UIViewController lifecycle

All these commands are called automatically at the appropriate times by iOS when you load/present/hide the view controller. It's impo...
Read More

How to set iPhone UI View z index?

UIView siblings are stacked in the order in which they are added to their superview. The UIView hierarchy methods and properties are ther...
Read More

Saturday, August 15, 2015

How to disable all caps menu titles in Visual Studio

Visual Studio 2012 (Full) HKEY_CURRENT_USER\Software\Microsoft\VisualStudio\11.0\General DWORD: SuppressUppercaseConversion Value...
Read More

Can you force Visual Studio to always run as an Administrator in Windows 8?

In Windows 8, you have to right-click devenv.exe and select "Troubleshoot compatibility". Select "Troubleshoot program&...
Read More

How to Run Visual Studio as Administrator by default

Using Advanced Properties section. This will allow you to always have the program run as an administrator when you open it. Windows 7...
Read More

WPF RichTextBox

The RichTextBox control allows you to view and edit text, paragraph, images, tables, other rich text format contents. The RichTextBox...
Read More

Thursday, August 13, 2015

.NET Design Patterns – A Fresh Look

.NET Design Patterns…. yes, there are several books and resources written on this topic. When it comes to Software Development, Design Pa...
Read More

The Web API Checklist — 43 Things To Think About When Designing, Testing, and Releasing your API

When you're designing, testing, or releasing a new Web API, you're building a new system on top of an existing complex and sophis...
Read More

MVC, AngularJS and WCF Rest Service For Master Detail Grid

This article shows how to create a Master and Detail Grid using AngularJS and WCF. In this article we will see: How to create a WCF Re...
Read More

Unit Testing with NBuilder and NSubstitute using either a FakeDBSet or a mock DbSet

In the previous blog post I showed how you can unit test with NBuilder and NSubstitute by using a FakeDbSet implementation. The thing is ...
Read More