Archive for gennaio, 2011
28
gen

A simple way to detect long press without using UIGestureRecognizer that is released from iOS version 4.0+.

Here the code:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
double secondsInterval;
NSTimer *lpTim;

[...]

- (void) touchesBegan:(NSSet*)touches withEvent:(UIEvent*)event {
      secondsInterval = CFAbsoluteTimeGetCurrent();

      lpTim = [NSTimer scheduledTimerWithTimeInterval:0.01
            target:self
            selector:@selector(startLongPressCounter)
            userInfo:nil repeats:YES];
}

- (void) touchesEnded:(NSSet*)touches withEvent:(UIEvent*)event {
 if (lpTim != nil) [lpTim invalidate];
}

- (void) startLongPressCounter {
 double interval = CFAbsoluteTimeGetCurrent() - secondsInterval;

 if ( interval >= 1.0 ) { // the longpress interval
  NSLog(@"point long press: %f", interval);

  if (lpTim != nil) {
   [lpTim invalidate];
   lpTim = nil;
  }
 }
}

that’s all folks!

Rif: albertopasca.it





FacebookTwitterDeliciousLinkedInGoogle BookmarksNetlogGoogle GmailMySpaceGoogle ReaderShare

, ,

28
gen

Hi all,
a large collection of tricks that you made with registry edit in your Windows Phone 7.
These are all hidden features, but simply editable from the registry directly from phone.

If you don’t have a unlocked phone with registry editor, read this article.
After that, read this one to read / write registry in WP7.
Rif: albertopasca.it

Here we goooooo:

Prevent Relock for ChevronWP7 unlocked device

1
2
3
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
    "PortalUrlProd"=""
    "PortalUrlInt"=""

OR

1
2
3
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg]
"PortalUrlProd"="127.0.0.1"
"PortalUrlInt"="127.0.0.1"

Enable Wifi 11n

1
2
[HKEY_LOCAL_MACHINE\Comm\BCMSDDHD1\Parms]
    "11nModeDisable"=dword:0

Caller ID issue fix

1
2
[HKEY_CURRENT_USER\ControlPanel\Phone]
"CallIDMatch"=dword:7

Live ID Activation Code
(Usefull on HD2 to bypass boring serial number step)

1
2
[HKEY_LOCAL_MACHINE\Software\Microsoft\GwpCPC]
  "ActivationCode"="R****-H****-I****-*7***-**8**"

Developer Unlock State

1
2
[HKEY_LOCAL_MACHINE\Comm\Security\LVMod]
    "DeveloperUnlockState"=dword:1





Unlock Hidden option in ease of access settings

1
2
3
4
5
[HKEY_LOCAL_MACHINE\System\Accessibility]
    "CompactMode"=dword:0
    "TTY"=dword:1
    "telecoil_UI"=dword:1
    "telecoil"=dword:1

Set AutoData

1
2
3
4
5
[HKEY_LOCAL_MACHINE\System\AutoDataConfig]
"RunADC"=dword:1
"ConfigurationStatus"=dword:0
"Attempt"=dword:0
"MaxAttemptsAllowed"=dword:3

Show 3G Toogle

1
2
[HKEY_LOCAL_MACHINE\Software\Microsoft\Connectivity\CellularCPL]
 "Show3GToggle"=dword:1

Add “never” option to Lockscreen screen time-out

1
2
[HKEY_LOCAL_MACHINE\ControlPanel\Lock]
"DisableNever"=dword:0

Rif: albertopasca.it

Disable System Logs for best performance (usefull on HD2)

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Application]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Security]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\System]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-CellularLogPublisher-Channel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-Dtpt-Channel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-FacebookStatusEvent-Channel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-Mtp-Channel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-SharePoint-Notification-Channel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-ShortMsgEtw-Channel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-SNTransports-Channel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-Commsync-Channel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-SyncStatusEvent-Channel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\SYSTEM\EventLog\Channel\Microsoft-WindowsMobile-TelShell-ShellHistoryChannel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-UnifiedStorePublisher-Channel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-RilDrvLogChannel-Channel]
"DefaultEnable"=dword:00000000
[HKEY_LOCAL_MACHINE\System\EventLog\Channel\Microsoft-WindowsMobile-ZTraceChannel]
"DefaultEnable"=dword:00000000

Cleartype settings

1
2
3
4
5
6
[HKEY_LOCAL_MACHINE\System\GDI\ClearTypeSettings\0409]
"ForceOff"=dword:1
"Enabled"=dword:0
"Quality"=dword:0
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings\0409]
"ClearTypeText"=dword:1

System & Home Background color to grey (replace dark theme background color)

1
2
3
[HKEY_LOCAL_MACHINE\ControlPanel\Themes\1]
    "PageBackgroundColor"="#FF818181"
    "SysTrayBackgroundColor"="#FF818181"


keypad,keyboard background & menu color black (Restart needed to apply)

1
2
[HKEY_LOCAL_MACHINE\ControlPanel\Themes\1]
 "ChromeColor" value="#FF000000"

Famous on WM6 glyph cache entry

1
2
[HKEY_LOCAL_MACHINE\SYSTEM\GDI\GLYPHCACHE\0409]
    "limit"=dword:4000

Notification & sound volume

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
[HKEY_CURRENT_USER\ControlPanel\Notifications\Vibrate]
"Enabled"=dword:0
[HKEY_CURRENT_USER\ControlPanel\Notifications\Message]
"Enabled"=dword:1
[HKEY_CURRENT_USER\ControlPanel\Notifications\Led]
"Enabled"=dword:1
"TimeOut"=dword:1e
[HKEY_CURRENT_USER\ControlPanel\Notifications\Sounds]
"Enabled"=dword:1
"Repeat"=dword:0
"Wave"="Alarm1"
[HKEY_CURRENT_USER\ControlPanel\Notifications\Default]
"LedRefCount"=dword:0
[HKEY_LOCAL_MACHINE\ControlPanel\Volume]
[HKEY_CURRENT_USER\ControlPanel\Volume]
"Key"=dword:2
"Screen"=dword:2
"Mute"=dword:7
"Volume"=dword:C666C666
"MaxSystemUIVolume"=dword:1E
"MaxInCallUIVolume"=dword:A
"MaxdBAtten"=dword:2D
"MinInCallVolume"=dword:1111

Unlock Hidden option in ease of access settings

1
2
3
4
5
[HKEY_LOCAL_MACHINE\System\Accessibility]
    "CompactMode"=dword:0
    "TTY"=dword:1
    "telecoil_UI"=dword:1
    "telecoil"=dword:1





Change default IE search engine
BING

1
2
3
4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes]
    "DefaultScope"="Bing"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\Bing]
"URL"="http://m.bing.com/search/search.aspx?mid=8015&LC=en-us"

GOOGLE

1
2
3
4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes]
    "DefaultScope"="Google"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\Google]
"URL"="http://www.google.com/m?hl=en&gl=us&client=ms-hms-tmobile-us&q={searchTerms}"

YAHOO

1
2
3
4
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes]
    "DefaultScope"="Yahoo"
[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\SearchScopes\Yahoo]
"URL"="http://de.search.yahoo.com/search?p={searchTerms}"

Add url to IE new Tabs

1
2
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\AboutURLs]
"tabs"="http://www.albertopasca.it"

Rif: albertopasca.it

ACCENT COLOR NAMES

1
2
3
4
5
6
7
8
9
10
11
12
13
HKEY_LOCAL_MACHINE\ControlPanel\Themes\AccentsDisp layName\0409]
"0"="Green" ;
"1"="Red" ;
"2"="Blue" ;
"3"="Orange" ;
"5"="Pink" ;
"6"="Brown" ;
"7"="Lime" ;
"8"="Teal" ;
"9"="Purple" ;
"10"="Magenta" ;
"11" = "Light blue";
"12" = "Dark blue";


LIGHT

1
2
3
4
5
6
7
8
9
10
11
[HKEY_LOCAL_MACHINE\ControlPanel\Themes\0\Accents]
"0"=dword:FF339933
"1"=dword:FFE51400
"2"=dword:FF1BA1E2
"3"=dword:FFF09609
"5"=dword:FFE671B8
"6"=dword:FFA05000
"7"=dword:FF8CBF26
"8"=dword:FF00ABA9
"9"=dword:FFA200FF
"10"=dword:FFFF0097

DARK

1
2
3
4
5
6
7
8
9
10
11
[HKEY_LOCAL_MACHINE\ControlPanel\Themes\1\Accents]
"0"=dword:FF339933
"1"=dword:FFE51400
"2"=dword:FF1BA1E2
"3"=dword:FFF09609
"5"=dword:FFE671B8
"6"=dword:FFA05000
"7"=dword:FF8CBF26
"8"=dword:FF00ABA9
"9"=dword:FFA200FF
"10"=dword:FFFF0097

ADD MORE COLORS

1
2
3
4
5
[HKEY_LOCAL_MACHINE\ControlPanel\Themes\AccentsDisplayName\0409]
"13"="Grey"
"14"="Light grey"
"15"="Black"
"16"="White"
1
2
3
4
5
[HKEY_LOCAL_MACHINE\ControlPanel\Themes\AccentsDisplayName\0c0a]
"13"="Gris"
"14"="Gris claro"
"15"="Negro"
"16"="Blanco"
1
2
3
4
5
[HKEY_LOCAL_MACHINE\ControlPanel\Themes\0\Accents]
"13"=dword:FF808080
"14"=dword:FFC0C0C0
"15"=dword:FF000000
"16"=dword:FFFFFFFF
1
2
3
4
5
[HKEY_LOCAL_MACHINE\ControlPanel\Themes\1\Accents]
"13"=dword:FF808080
"14"=dword:FFC0C0C0
"15"=dword:FF000000
"16"=dword:FFFFFFFF


ADD MORE THAN 10 UNSIGNED APPS

1
2
[HKEY_LOCAL_MACHINE\Software\Microsoft\DeviceReg\Install]
    "MaxUnsignedApp"=dword:7fffffff ; Allow max number of unsignd apps

VARIOUS

1
2
[HKEY_LOCAL_MACHINE\Software\Qualcomm\QosLib]
  "Enabled"=dword:0
1
2
[HKEY_LOCAL_MACHINE\Software\Microsoft\Camera\Settings]
  "ScreenOrientation"=dword:0
1
2
[HKEY_LOCAL_MACHINE\Software\Qualcomm\RIL\Options]
  "ExtendedSSInfo"=dword:0
1
2
3
4
5
6
[HKEY_LOCAL_MACHINE\Software\Microsoft\Connectivity\CellularCPL]
  "MakeDataConnectionExclusive"=dword:1
  "Show3GToggle"=dword:1
  "AutoNetwork"=dword:1
  "Roaming"=dword:0
  "CellDataOn"=dword:1
1
2
3
[HKEY_CURRENT_USER\ControlPanel\PhoneNetSelMode]
  "AlwaysShowGSMOperationModes"=dword:1
  "Option"=dword:0
1
2
[HKEY_LOCAL_MACHINE\Software\HTC\Proximity]
  "ProximityDetectStatus"=dword:0

NEVER LOCK SCREEN

1
2
    [HKEY_LOCAL_MACHINE\ControlPanel\Lock]
    "DisableNever"=dword:0

Enjoy as usual and be carefully!!!

Snippet from the web.

Rif: albertopasca.it





FacebookTwitterDeliciousLinkedInGoogle BookmarksNetlogGoogle GmailMySpaceGoogle ReaderShare

, , , , , , , , , , , ,

27
gen

Hi all,
you want change bing homepage from Internet Explorer?

IE


Here a simple tricks without unlocking your phone!

The string to edit is here in regedit:

1
HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\AboutURLs

and the key is edit is “tabs“.

But… how to change Regedit string in Windows Phone 7 ???
First of all, read this post (how to enable MGF menu).





Next, open MGF, set the password like the previous link and go to:
-> Engineer Menu
-> Other Settings
-> Edit Registry

Select HKEY_LOCAL_MACHINE.
On next textfield type correctly: “Software\Microsoft\Internet Explorer\AboutURLs
Next one write “tabs” – STRING
On the last one, in “Input Data“, type your home page like “http://www.albertopasca.it

Before click SET, please click QUERY to verify that is all correct.
At the bottom you can view registry current key.

If you wrongly type strings, you could damage phone registry and could be necessary an HARD RESET! Be carefully!

Once your setting are ok, click SET and restart your phone!
Now, when you open Internet Explorer without any tabs, you see your custom homepage.

Default tabs value is “res://ieframe.dll/tabswelcome.htm”.

This settings was applied successfully on LG OPTIMUS 7, my phone.

enjoy!

Rif: albertopasca.it





FacebookTwitterDeliciousLinkedInGoogle BookmarksNetlogGoogle GmailMySpaceGoogle ReaderShare

, , , , , , , , ,

27
gen

Today a phone code to enable in your apps list a new tool, MFG!


Open telephone and call ##634#.
After that, in your app list you can view MFG.




MFG use a password to enter in secret menù. Type 277634#*# and click ENTER.


Once opened you can set/view/edit a lot of phone functions, like regedit!

1 Device test
2 ELT mode
3 sw Sanity test
4 factory reset
5 version
6 call ui display
7 engineer menu
8 Folder tester
9 IRT test

enjoy and be carefull!!!

Rif: albertopasca.it





FacebookTwitterDeliciousLinkedInGoogle BookmarksNetlogGoogle GmailMySpaceGoogle ReaderShare

, , , , , , , ,

14
gen

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:

Ipad Popover

First of all, check if you device is an Ipad! It’s very important… else the result will be this:

*** Terminating app due to uncaught exception ‘NSInvalidArgumentException’, reason:
‘-[UIPopoverController initWithContentViewController:] called when not running under UIUserInterfaceIdiomPad.’

right?
After this, add getter/setter for

1
2
3
UIPopoverController *popoverController;
[...]
@property(nonatomic, retain) UIPopoverController *popoverController;

Add this code in your button action:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- (IBAction) yourAction {
    UIViewController* popoverContent = [[UIViewController alloc] init];

    UIView* popoverView = [[UIView alloc] initWithFrame:CGRectMake(0, 0, 200, 150)];
    popoverView.backgroundColor = [UIColor whiteColor];

    popoverContent.modalInPopover = YES;
    popoverContent.modalPresentationStyle = UIModalPresentationFormSheet;
 
    UIButton *button = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    [button setFrame:CGRectMake(20, 20, 160, 30)];
    [button setTitle:@"Close" forState:UIControlStateNormal];
    [button addTarget:self action:@selector(closePopover) forControlEvents:UIControlEventTouchUpInside];
    [popoverView addSubview:button];
 
    UITextView *cccp = [[UITextView alloc] initWithFrame:CGRectMake(10, 50, 180, 120)];
    cccp.userInteractionEnabled = NO;
    [cccp setText:@"Write your text here\n\nwww.albertopasca.it"];
    cccp.textAlignment = UITextAlignmentCenter;
 
    [popoverView addSubview:cccp];
    popoverContent.view = popoverView;
    popoverContent.contentSizeForViewInPopover = CGSizeMake(200, 150);
 
    self.popoverController =
        [[[UIPopoverController alloc] initWithContentViewController:popoverContent] autorelease];
    [self.popoverController presentPopoverFromRect:copy.frame
                                                                    inView:self.view
                                       permittedArrowDirections:UIPopoverArrowDirectionAny animated:YES];
 
    [popoverView release];
    [popoverContent release];
    [cccp release];
}






…and finally close the UIPopoverController on touch:

1
2
3
- (void) closePopover {
 [self.popoverController dismissPopoverAnimated:YES];
}

it’s all!

Easy as ever!

Rif: albertopasca.it





FacebookTwitterDeliciousLinkedInGoogle BookmarksNetlogGoogle GmailMySpaceGoogle ReaderShare

, , , , , , ,

11
gen

Two functions to write and read data from device or simulator default storage.

This snip use NSUserDefaults to store data in application’s reserved space:

1
2
3
4
5
6
- (void) saveData {
     NSString *testoInserito = @"save me on disk!";
     NSUserDefaults *defaults = [NSUserDefaults standardUserDefaults];
     [defaults setObject:testoInserito forKey:@"myKey"];
     [defaults synchronize];
}





This one read data from storage.

1
2
3
4
5
6
7
8
9
- (NSString*) readData {
     NSString *testoSalvato = [[NSUserDefaults standardUserDefaults] objectForKey:@"myKey"];
     if (testoSalvato == nil) {
          NSLog(@"no data");
     } else {
          NSLog(@"%@", testoSalvato);
     }
     return testoSalvato;
}

You can store anything!

Rif: albertopasca.it

FacebookTwitterDeliciousLinkedInGoogle BookmarksNetlogGoogle GmailMySpaceGoogle ReaderShare

, ,

11
gen

Get current and formatted time from your simulator or device!

1
2
3
4
5
6
7
8
9
10
11
12
13
- (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;
}

eof

Rif: albertopasca.it

FacebookTwitterDeliciousLinkedInGoogle BookmarksNetlogGoogle GmailMySpaceGoogle ReaderShare

, , , ,

11
gen

Easy way:

1
CREATE TABLE newTable AS SELECT * FROM oldTable WHERE 1=0;

done.

FacebookTwitterDeliciousLinkedInGoogle BookmarksNetlogGoogle GmailMySpaceGoogle ReaderShare

, ,

10
gen

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!

First, import MessageUI framework, after include in your header file (.h) the import to the framework:

1
#import messageui/MessageUI.h

and set the delegate to

1
mfmailcomposeviewcontrollerdelegate

Now, create a button in your view and attach mailil function!

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
- (void) mailComposeController:(MFMailComposeViewController*)controller didFinishWithResult: (MFMailComposeResult)result error:(NSError*)error {
 [self dismissModalViewControllerAnimated:YES];
}

- (IBAction) mailIt {
 MFMailComposeViewController *picker = [[MFMailComposeViewController alloc] init];
 picker.mailComposeDelegate = self;
 
 [picker setSubject:@"This is the subject"];
 
 UIImage *roboPic = [UIImage imageNamed:@"anImage.jpg"];
 NSData *imageData = UIImageJPEGRepresentation(roboPic, 1);
 [picker addAttachmentData:imageData mimeType:@"image/jpg" fileName:@"anImage.jpg"];
 
 NSString *emailBody = @"This is the email body!!";
 [picker setMessageBody:emailBody isHTML:YES];
 
 [self presentModalViewController:picker animated:YES];
 [picker release];
}

done!





Rif: albertopasca.it

FacebookTwitterDeliciousLinkedInGoogle BookmarksNetlogGoogle GmailMySpaceGoogle ReaderShare

, , , , ,

09
gen

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





After that, create an IBAction or something else and paste this function:

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
- (IBAction) addToContacts {
        ABAddressBookRef iPhoneAddressBook = ABAddressBookCreate();
        ABRecordRef newPerson = ABPersonCreate();

        // add infos
        ABRecordSetValue(newPerson, kABPersonFirstNameProperty, CFSTR("Alberto"), nil);
        ABRecordSetValue(newPerson, kABPersonLastNameProperty, CFSTR("Pasca"), nil);
        ABRecordSetValue(newPerson, kABPersonOrganizationProperty, CFSTR("albertopasca.it"), nil);

        ABMutableMultiValueRef multiPhone = ABMultiValueCreateMutable(kABMultiStringPropertyType);
 
        ABMultiValueAddValueAndLabel(multiPhone, @"328-1111111", kABHomeLabel, NULL);
        ABMultiValueAddValueAndLabel(multiPhone,@"02-222222", kABWorkLabel, NULL);
        ABRecordSetValue(newPerson, kABPersonPhoneProperty, multiPhone,nil);
        CFRelease(multiPhone);
 
        ABMutableMultiValueRef multiEmail = ABMultiValueCreateMutable(kABMultiStringPropertyType);

        ABMultiValueAddValueAndLabel(multiEmail, @"info@albertopasca.it", kABHomeLabel, NULL);
        ABRecordSetValue(newPerson, kABPersonEmailProperty, multiEmail, nil);

        // add an image !
        UIImage *im = [UIImage imageNamed:@"logo_mobile_48.png"];
        NSData *dataRef = UIImagePNGRepresentation(im);
        ABPersonSetImageData(newPerson, (CFDataRef)dataRef, nil);

        CFRelease(multiEmail);
 
        ABAddressBookAddRecord(iPhoneAddressBook, newPerson, nil);
        BOOL didAdd = ABAddressBookSave(iPhoneAddressBook, nil);

        CFRelease(newPerson);
        CFRelease(iPhoneAddressBook);
}

All the contact properties are hidden in kAB*******. Try it!

It’s all!!!

enjoy!




Rif: albertopasca.it

FacebookTwitterDeliciousLinkedInGoogle BookmarksNetlogGoogle GmailMySpaceGoogle ReaderShare

, , , , , , , , , ,

Switch to our mobile site