How to give Nil value for UIColor in xamarin.iOS?

How to give nil value for UIColor in Xamarin.iOS ?

iOS :

UIColor * backgroundColor = nil;

 

Same as Xamarin.iOS the following code

 

 internal class CustomColor : UIColor
    {
        internal CustomColor(IntPtr value) :base(value)

        {

        }
    }	

Example: 

	UIView view = new UIView ();

    CustomColor color = new CustomColor(IntPtr.Zero);

    view.BackgroundColor = color;


You use same approach to all type iOS native object.

How to create bash alias or alias functions for dynamic commands to pass line parameters in linux say ubuntu

Just edit the file ~/.bashrc by using the below command where in you will see all the bash commands 

gedit ~/.bashrc

Say now Im going to create bash alias function for dynamic command that is for git add files

We cannot simply run 

git add

We should pass the filenames to add the files to it, for this  you must create  alias as function now my alias is going to be ga for the below command

git add filename

so when We type

How to create bash alias and what is bash alias in linux OS say ubuntu

According to me

Bash alias is used to create your commands in your linux machine as it is to ease or speed up your work.


just edit the file ~/.bashrc by using the below command where in you will see all the bash commands 

 gedit ~/.bashrc

Say as per my previous article I need to clear cache of my application with short commands

How to run the command one by one or only after the previous command is complete in linux OS say ubuntu

You may have to work faster when you have tight deadlines, You may have work on linux system and you may have to add the commands one by one to achieve certain task 

Say for example 

Clear the application cache 

If you do it manually you may need to delete the folder and then create it and then 
give 777 permission for that folder, what you can do is, you can simply type in all commands by small change in it, it will save your time.

How php compact function is usefull for mvc frameworks

<?php
$firstname = "Karthikeyan";
$lastname = "Manivasagam";
$age = "27";

$name = array("firstname", "lastname");
$result = compact($name, "location", "age");

print_r($result);
?>
Output 

Array ( [firstname] => Karthikeyan [lastname] => Manivasagam [age] => 27 )

How php compact function is usefull for mvc frameworks ? let me tell you

We could use the same method when we pass/set  variables to views in controller