With thousands of API changes in iOS 8, developers have been hard at work updating their apps to support the latest version of iOS. Many hop...
Thursday, December 31, 2015
Best 25 .net articles on the web in 2015 (Worth Reading !!!)
Before saying 'Goodbye' to year 2015, Let's review all our best featured .net articles in year 2015. We read many articles this ...
Get list of all available fonts in iOS application
Following code can be used to find all fonts used in the iPhone app. NSArray *familyNames = [[NSArray alloc] initWithArray:[UIFont familyNam...
Remove Storyboard or Convert Project from Storyboard to Xib
Step 1) //Add below code in AppDelegate.h @property (retain, nonatomic) UIWindow *window; @property (nonatomic,retain) UINavigationControll...
Monday, September 28, 2015
Introducing U-SQL – A Language that makes Big Data Processing Easy
Microsoft announced the new Azure Data Lake services for analytics in the cloud that includes a hyper-scale repository, a new analytic...
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 dataSou...
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 issue...
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 ...
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: exten...
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 g...
How to filter NSArray in Swift?
Here is what you can do Swift version: let resultPredicate = NSPredicate(format: "name contains[c] %@", searchText) s...
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 is...
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...
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...
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...
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: ...
Swift - Integer conversion to Hours/Minutes/Seconds
Define func secondsToHoursMinutesSeconds (seconds : Int) -> (Int, Int, Int) { return (seconds / 3600, (seconds % 3600) / 60, (...
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 ...
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...
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...
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...
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,...
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 im...
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...