
Search In
Hi,
In many cases we have to give a background color to a superview with alpha less than 1.0. If we give color from XIB/storyboard to a superview with alpha 0.4 then it assigns the alpha 0.4 to its subviews also.
What if we need to give alpha 0.4
This is a simple method to compare two arrays and get all the common objects from these arrays.
Take two arrays(say firstArray & secondArray)
NSMutableSet* arraySet1 = [NSMutableSet setWithArray:firstArray]; //create NSMutableSet for firstArra
If you want to extend the default header in odoo-9 , use the below code.
<Customize header>
<template id="custom_header" inherit_id="website.layout" name="Custom Header"> // this is a header template.
<Assign an id>
<xpath ex
Javascript and jquery redirection is a client side redirection. Redirection means taking a user from one location to another location i.e page. Here are several methods available in jquery and javascript for page redirection such as
replace() --
Ruby supports both && as well as and.
The basic difference between these 2 lies in their precedence order.
&& has higher preference than and.
and has lower preference than = unlike && which has higher preference than =
We can add taxonomy to our custom post type.
Adding taxonomy means adding new category option in our custom post type.
We use taxonomy to basically categorize the data.
We create the groups of the similar type.
To add custom taxonomy we use this
# A Python program returning multiple values from a method using tuple
# Function is defined that returns a tuple
def fun():
str = "Demo"
x = 20
return str, x; # Returning a tuple
# Driver code to test above method
str, x = fun(
The foreach function in php will be used for a easy way to iterate over the loop and it is only used in array and objects or It will give you an error when you try to use it on a variable with different data type.
Syntax:
foreach(array_expressio
Const keyword
Const variable in C# are compile time variable i.e value is known at compile time.
The assignment to const variable is only done at the time of declaration and this value of variable remain constant throughout lifetime of the progra
Hello all !
Explanation is,
Suppose we want to change the background color of the UIButton when it is selected and when reSelected change it to the default colour.
There are many methods for doing so and one of them I am explaining below :-
First