EKEventStore *eventStore = [[EKEventStore alloc] init];
EKEvent *event = [EKEvent eventWithEventStore:eventStore];
event.title = appDelegate.title1;
NSLog(@"%@",event.title);
event.startDate = appDelegate.currentDateName;
NSLog(@"%@",event.startDate);
event.endDate = appDelegate.alertTime;
[event setCalendar:[eventStore...
Hi Experts,
I'm using a TTTableSubtitleItem and want that on a touch a function is called.
TTURLMap *map = navigator.URLMap;
[map from:@"*" toObject:self selector:@selector(calledFunction)];
but if I' using it its throwing this error:
*** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSInvocation...
Hi,
how can I calculate the calendar week? A year has 52/53 weeks and there are two rules:
-USA
-DIN 1355 / ISO 8601
I'd like to work with DIN 1355 / ISO 8601. How can I manage that?
Edit:
NSDate *today = [NSDate date];
NSDateFormatter *dateFormat = [[NSDateFormatter alloc] init];
[dateFormat setDateFormat:@"ww"];
NSString *weeknum...
I want to close other application running background with my app
how can i do it?
...
First, here's my original question that spawned all of this.
I'm using Appcelerator Titanium to develop an iPhone app (eventually Android too). I'm connecting to CouchDB's port directly by using Titanium's Titanium.Network.TCPSocket object. I believe it utilizes the Apple SDK's CFSocket/NSStream class.
Once connected, I simply write:
...
UItableView style not changing. I have a tableView controller as one of the tabs of my tab bar controller. I am not able to change the style of UItableView to grouped.
Please help,
...
Hi,
I need to rename a ObjC Class Implementation File into *.mm, because I'm using a
C++ Framework (Box2D). After renaming the file and setting the Filetype to "sourcecode.cpp.objcpp" my following declaration of private methods produces some errors like:
error: expected identifier before 'private'
The declaration of methods:
@...
Will Apple reject my application which contains the function setAllowsRubberBanding?
...
i want specific pages to be viewed in horizontal and Vertical view in iPhone. is it possible? Please send sample code
...
I've subclassed UITableView to create my own data retrieval system, as described in Apple's own Core Data tutorial, but I've hit a problem. The substitute cellForRowAtIndexPath method in my custom table never gets called, not even when I call reloadData or setNeedsDisplay. I've been hunting around for solutions to this one, and it seems ...
Hi all.
I'v been struggling with this one for some time so any hint or suggestion are welcome.
I'm trying to delete a file from a directory under "Documents". The problem is that the file is not delete on the device dow it is on the simulator.
Just to add to the mystery, before the call to removeItemAtPath I check if the file exists wi...
I am building a simple Navigation-based app using tables.
I have a custom "UITableViewCell" to customize the table cell data attached below.
@interface NewsCell : UITableViewCell
{
IBOutlet UILabel *newsTitle;
}
- (void)setNewsLabel:(NSString *)title;
@end
And then in my RootViewController, I set the text of the label "newsTitle...
Hi, i have a situation like this:
NSMutableArray * A = [[NSMutableArray alloc]initwithObjects:@"one",nil];
NSMutableArray * B = [[NSMutableArray alloc]initwithObjects:@"two",nil];
[A addObject:B];
[B addObject:A];
now here is a retain cycle, How can i break this retain cycle? (using weak reference)....in above example.
Thanks
...
hi
I have a label on my main View. I have a button which brings me to another view. On it I have a button to change my label which is on the main view.
How can I do this? I included a projet, could someone help me please...
Project : here
...
How to integrate BING Map into iPhone Application?
I am doing using VirtualEarthKit framework (http://consonancesw.com/blog/?p=64).
My code is as below :
I am getting error while getting token.
{
VECommonService *commonService = [[VECommonService alloc] init];
NSString *token;
printf("2\n");
NSError *error=[commonService getToken:&t...
Hey, right now I have implemented my own listener pattern.
I will send an update to the listeners using fast enumeration.
the code will look like this
- (void) updateListeners {
for (id<AProtocol>listener in _listeners)
{
[listener update];
}
and in listener, i implement method for AProtocol, which is update.
suppose there are n ob...
As seen in UIDatePicker you can scroll up endlessly (as well as down for that matter). I want to accomplish that too, because I want people to select a date such as:
1 January, 2010
2 January, 2010
...
30 December, 2010
31 December, 2010
1 January, 2011
..
So it can go on forever. How would I accomplish this? Since I can only give a sp...
I have a view in my app where I use a very large photo that is Hi-Res and takes a bit of time to load. How do I put a loading screen while this is happening? The kind of loading screen with the spinning loading wheel so that the app does not look like it has frozen? Thanks in advance for any help!
Edit: Note that I am simply loading the...
Hi
i building a drawing app that uses openGl. i am new to openGL but managed to build the basic app.
I am now working on the ability of the user to save the drawings to camera roll.
i have a view that holds an image that the user uses to draw, so it have to be visible but not affected from the drawing canvas.
a bove it i have a view...
Hi everyone,
I am tyring to customize the colors a bit in a ABPeoplePickerNavigationController below is my complete code:
ABPeoplePickerNavigationController *objPeoplePicker = [[ABPeoplePickerNavigationController alloc] init];
[objPeoplePicker setPeoplePickerDelegate:self];
objPeoplePicker.topViewController.navigationController.navigat...