[Objective-C] Get current Date and Time

Get current and formatted time from your simulator or device!

[code lang=”java” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]- (NSString*) getDateTime {
     NSDateFormatter *formatter;
     NSString        *dateString;
 
     formatter = [[NSDateFormatter alloc] init];
     [formatter setDateFormat:@"dd-MM-yyyy HH:mm"];
 
     dateString = [formatter stringFromDate:[NSDate date]];
     [formatter release];

     NSLog(@"Current data: %@", dateString);
     return dateString;
}[/code]

eof

Rif: albertopasca.it

 

[Objective-C] Ipad popover controller

Hi all,
today a snippet to open in a view a popover controller. It’s the view with the arrow (do you know?)

Like this, take a look here:

Read More

 

[Objective-C] Send mail with attachments

Hi all,
with these lines of code you can use Apple iOS Mail system to send an email with an attachment!

It’s so easy that i don’t know this method!

Read More

 

[Objective-C] Add contact to contacts list

Hi all,
this is a simple way to add programmatically a “Person” into your iphone contacts list.

First of all you need to include Address Book frameworks into your project:

#import AddressBook/AddressBook.h
#import AddressBookUI/AddressBookUI.h

Read More

 

[ObjectiveC] Move view on textFieldDidBeginEditing

Nuova versione, del 5/12/2012:

Read More

 

[WP7] Trova su mappa, chiama, blocca e resetta da web

Eh si,
anche il mio nuovissimo Windows Phone 7 fa di tutto per essere ritrovato!!!
E’ un LG Optimus 7 – E900 !

Read More

 

[WP7] Open Url with Internet Explorer

How to call Internet Explorer to open a custom url!

[code lang=”csharp” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]WebBrowserTask ie = new WebBrowserTask();
ie.URL = "http://www.albertopasca.it";
ie.Show();[/code]

 

Windows Phone 7 – SDK

Bene,
come al solito Microsoft non si tira indietro e presenta il nuovo SDK per Windows Phone 7 e XBOX 360!

Provato subito in anteprima!

Read More

 

[WP7] Make phone call

This is my first post about Windows Phone 7 SDK!

It’s a C# snipplet to make call from your phone using PhoneCallTask!

[code lang=”csharp” autolinks=”false” collapse=”false” firstline=”1″ gutter=”true” htmlscript=”false” light=”false” padlinenumbers=”false” smarttabs=”true” tabsize=”4″ toolbar=”false”]
PhoneCallTask pct = new PhoneCallTask();
pct.DisplayName = "Alberto Pasca";
pct.PhoneNumber = "+39328111111";
pct.Show();
[/code]

Windows Phone 7 Make Call

stay tuned!

 

Folkolore – Archivio multimediale della memoria popolare

Folkolore Ass. Culturale pubblica

L’ ARCHIVIO MULTIMEDIALE DELLA MEMORIA POPOLARE.

Folkolore, associazione culturale

Read More