
Search In
You can convert NSImage to NSImageRep by using the following method:
- (NSImageRep*)bitmapImageRepresentation:(NSImage*)image
{
NSArray *ret =[image representations];
for(NSImageRep *rep in ret)
if([rep isKindOfClass:[NSImageRep clas
A sample code that works for following functionalities
1- Facebook sharing.
2- Flickr sharing.
3- Posting images to server.
4- Sending email with attachments.
5- Importing and exporting .CSV file and PDF.
6- Audio Recording and playing same.
Check the rows of column is either greater than zero or not
Use function DefaultView
Pass the parameters true for distinct, and create new string for giving columns
if (dt1.Rows.Count > 0)
{
DataTable dt2 = dt1.DefaultView.ToTabl
Quick reference of swift language comparison with Objective C code
Queue using Dynamic LinkList:-The Below code can shown you how to implement Queue using dynamic linklist in data structure using C. We can insert the node dynamically and the Linklist works on principal First-In-First-Out(FIFO). The Element can show
Hello Friends,
This blog explains how to implement singleton design pattern in c#. So lets start with few basic things:--
What is Singleton ?
A singleton is a class which only allows one instance of itself to be created - and gives simple, easy
Hello Reader's
If you want to blur image in objective c and swift then copy this code in your project and just call this function. In this code , Blur effect is 50 percent .
For Objective C :-
-(UIImage *)convertToBlurImage:(UIImage *)image
If you want to reverse an existing array in objc, you can do it this way.
- (NSMutableArray*)reverseArray {
if ([self.assetsArray count] == 0)
return;
NSUInteger i = 0;
NSUInteger j = [self.assetsArray count] - 1;
while
I came across a requirement where i had to find the current domain address of the app as i had to send an email to users with a public page url. I knew the virtual address of page but it would not work as in order to open a page from my website using
Hello Reader's! If you want to send an array as a Param with the url then you can use the serialize and deserialize option from PHP Lets see the example below:-
<?php
$array["a"] = "Thusitha";
$array["b"] = "Sumanadasa";
$array["c"] = "Lakmal";
$
