Thursday, December 1, 2011
Wednesday, November 30, 2011
iOS - Programmatically update EKEvent
The eventIdentifier getting on save is not able to fetch the event using eventIdentifier.
So we are unable to update the EKEvent programmatically even if we have its eventIdentifier
In SimpleEKDemo provided by Apple
log the eventIdentifier on EKEventEditViewDelegate method
Run the application on device, we will get the eventIDentifier like :So we are unable to update the EKEvent programmatically even if we have its eventIdentifier
In SimpleEKDemo provided by Apple
log the eventIdentifier on EKEventEditViewDelegate method
- (void)eventEditViewController:(EKEventEditViewController *)controller
didCompleteWithAction:(EKEventEditViewAction)action {
NSError *error = nil;
EKEvent *thisEvent = controller.event;
switch (action) {
case EKEventEditViewActionCanceled:
// Edit action canceled, do nothing.
break;
case EKEventEditViewActionSaved:
// When user hit "Done" button, save the newly created event to the event store,
// and reload table view.
// If the new event is being added to the default calendar, then update its
// eventsList.
if (self.defaultCalendar == thisEvent.calendar) {
[self.eventsList addObject:thisEvent];
}
NSLog(@"thisEvent.id = %@", thisEvent.eventIdentifier);
[controller.eventStore saveEvent:controller.event span:EKSpanThisEvent error:&error];
[self.tableView reloadData];
break;
case EKEventEditViewActionDeleted:
// When deleting an event, remove the event from the event store,
// and reload table view.
// If deleting an event from the currenly default calendar, then update its
// eventsList.
if (self.defaultCalendar == thisEvent.calendar) {
[self.eventsList removeObject:thisEvent];
}
[controller.eventStore removeEvent:thisEvent span:EKSpanThisEvent error:&error];
[self.tableView reloadData];
break;
default:
break;
}
// Dismiss the modal view controller
[controller dismissModalViewControllerAnimated:YES];
}
eventidonsave = 3CB60848-6CCA-43BF-B2C6-9EB9F5CFBBB7:C6CDE9DAA864420BA9A2E02CD886369700000000000000000000000000000000
1. log the event ids in the place of fetching events,
- (NSArray *)fetchEventsForToday {
....
....
for(EKEvent *eachEvent in events){
NSLog(@"eachEvent.id = %@", eachEvent.eventIdentifier);
}
2. or get the event using event identifier
just added this code on viewDidLoad()
EKEventStore *eventStore1 = [[EKEventStore alloc] init];
EKEvent *event1 = [eventStore1 eventWithIdentifier: eventidonsave ];
if(event1){
NSLog(@"event1 id = %@", event1.eventIdentifier);
}else{
NSLog(@"Not Found");
}
-----
In the case 1, we can see we are getting a different eventIdentifier like 3CB60848-6CCA-43BF-B2C6-9EB9F5CFBBB7:040000008200E00074C5B7101A82E00800000000646C6F747573C3010000000000000000100000000DA068F782418C4880257958003F776C
this is not the same as 'eventidonsave'
So in the case 2, we will get "Not Found".
Tuesday, September 13, 2011
Info: Apple Store, Kochi, Kerala, India
LASERGRAPHICS - Apple Authorized Resellers & Service provider for Apple Computers in Kerala.
Add: 38/721-B2 ABM Towers
Next to Rajiv Gandhi Indoor Stadium,
Kadavanthara, Cochin 682020
Tel: 0484 2207636, 3248486
Mobile: 9447720031
applecornercoch@eth.net
http://www.lasergraphics.in/
We can find the Apple Product Technical Specifications at
http://www.apple.co.in/store/
Add: 38/721-B2 ABM Towers
Next to Rajiv Gandhi Indoor Stadium,
Kadavanthara, Cochin 682020
Tel: 0484 2207636, 3248486
Mobile: 9447720031
applecornercoch@eth.net
http://www.lasergraphics.in/
We can find the Apple Product Technical Specifications at
http://www.apple.co.in/store/
Thursday, September 1, 2011
How to Remove application from iTunes Connect
From apple documentation:
Since Rights and Pricing settings are app level settings, when you choose to remove all App Store territory
settings for an app, you will be removing the entire app from the App Store and not just a specific version.
To remove your app from sale on the App Store:
1. Click on the button from your App Summary Page.
2. Click on the link to view specific stores.
3. Click on to uncheck all App Store territories.
4. Click on the button.
After removing all assigned territory checkboxes from your app in the Rights and Pricing section,, the status
changes to Developer Removed from Sale and your app will not be seen on the App Store within 24 hours.
See the Apple Documentation iTunes Connect Developer Guide 7.0 Page 90
NSURLRequest default cookie store will be required for http://...
Running iOS 5 sdk beta 6. So I think the error message is coming due to the beta software.. It may be fix in future release..
Thursday, August 18, 2011
How to Restore iPhone or iPad with given ipsw file
We can get the latest beta iOS version from apple iOS Dev Center page
Currently iOS 5 beta 5 Downloads are available.. Download the needed image for our device..
Also read the 'Read ME section' in that page..
.......
This version of iOS is intended only for installation on development devices registered with Apple's Developer Program. Attempting to install this version of iOS in an unauthorized manner could put your device in an unusable state, which could necessitate an out of warranty repair.
.....
#. We will get ipsw file from the downloaded dmg file (double click the dmg image)
#. To restore the iOS
1. open iTunes,
2. connect the device
3. select device and click Restore Button in the summary page by holding the alt or option button in the keyboard.
4. choose the ipsw file you downloaded..
FYI: --> Library --> iTunes --> iPad/iPhone SoftwareUpdates here you can see the last restored ipsw file..
To update our device OS
From the device, We can do wireless updates, go to settings > General > Software Update
Currently iOS 5 beta 5 Downloads are available.. Download the needed image for our device..
Also read the 'Read ME section' in that page..
.......
This version of iOS is intended only for installation on development devices registered with Apple's Developer Program. Attempting to install this version of iOS in an unauthorized manner could put your device in an unusable state, which could necessitate an out of warranty repair.
.....
#. We will get ipsw file from the downloaded dmg file (double click the dmg image)
#. To restore the iOS
1. open iTunes,
2. connect the device
3. select device and click Restore Button in the summary page by holding the alt or option button in the keyboard.
4. choose the ipsw file you downloaded..
FYI:
Wednesday, August 10, 2011
Understanding and Analyzing iOS Application Crash Reports
Read the App Store Review Guidelines from Apple site.
Read Technical Note TN2151 Understanding and Analyzing Crash Logs
How to symbolicate the crash reports to see the lines in our source code ?
got an answer from stackoverflow
1. Our application need to build with Build Settings -> under Build Options, the value of 'Debug Information Format' key should be "Dwarf with dSYM File"
2. We should keep the source and binary files which we used to submit the application to store
3. Select XCode, window -> organizer. select Archieve. Select the build which we used to submit and 'show in Finder'
4. select the xxx.xarchieve and 'Show contents'. You will get the .dSYM file and the .app file from the contents.
5. put the .app, .dSYM and crash logs files in a folder
6. open Terminal appplication and go to this folder // using cd command
7. execute the command
atos -arch armv7 -o appname.app/appname memory_location_in_the_crashlogs
Read Technical Note TN2151 Understanding and Analyzing Crash Logs
How to symbolicate the crash reports to see the lines in our source code ?
got an answer from stackoverflow
1. Our application need to build with Build Settings -> under Build Options, the value of 'Debug Information Format' key should be "Dwarf with dSYM File"
2. We should keep the source and binary files which we used to submit the application to store
3. Select XCode, window -> organizer. select Archieve. Select the build which we used to submit and 'show in Finder'
4. select the xxx.xarchieve and 'Show contents'. You will get the .dSYM file and the .app file from the contents.
5. put the .app, .dSYM and crash logs files in a folder
6. open Terminal appplication and go to this folder // using cd command
7. execute the command
atos -arch armv7 -o appname.app/appname memory_location_in_the_crashlogs
Subscribe to:
Posts (Atom)
