
Search In
To get the list of all the font that is available in xCode you can use this code.
for (NSString *name in fontnamesArray) {
NSLog(@"Font Family: %@",name);
NSArray *fontFaces = [UIFont fontNamesForFamilyName:name];
for (NSSt
// C++ program to count no of words from given input string.
#include <stdio.h>
#define separator 0
#define word 1
unsigned countWords(char *str) // returns number of words in str
{
int state = separator;
unsigned wc = 0; // word count
w
Object Cloning:
Cloning means to create exact copy of an existing object. To clone a object we have to implement java.lang.Cloneable interface by that class whose object will be cloned. clone() method is defined in Object class.
Example:
Each project has its own documents in SharePoint.
For creating the Project documents, first of all we have to create context by passing the projectSiteUrl.
1. Create context of projectSiteUrl
using Microsoft.SharePoint.Client;
context = new Client
To Create a alertView with textField in Xcode 7.2 we can Use the the code below to handle the Yes and no action.
and also get the text of the textField. You can show this on a viewController.
UIAlertController * alert= [UIAlertController
It represents ordered collection of an object that can be indexed individually.
In array we have problem of deleting items but in array list we can do it easily.
We have several properties and methods associated with the array list.
It comes under the category of bitwise operator. It is used base don some/multiple condition it gives true when both condition are true.
The output of the AND operator is 1 if both the corresponding bits of operand is 1. If either of bit is
Recursion is the process which repeat itself until some condition is reached otherwise it gets repeated again and again.
In programming languages, if a program allows to call a function inside the same function, then it is called a recursive
When we need to perform mutiple operations on an object in database or on multiple objects, then using transaction is considered a good practice as it maintains data consistency
Here is the sample code of how we can use transaction in EF
using (Ap
In divide and conquer approach the problem is subdivided into smaller problems, and then the sub problems we solved one by one and then they are integrated at last.
Broadly, we can expand it into a three way process:
Divid
