iphone

How to remove event From Iphone Calendar using EKEventStore?

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...

TTNavigator from Three20 is crashing

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...

calculate calendar week

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...

Close other multitasking apps with our application with code - iPhone

I want to close other application running background with my app how can i do it? ...

Should I connect directly to CouchDB's socket and pass HTTP requests or use node.js as a proxy?

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 + UItabbar

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, ...

Private Methods in ObjC++

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: @...

Does Apple reject application havin function setAllowsRubberBanding?

Will Apple reject my application which contains the function setAllowsRubberBanding? ...

horizontal and vertical view for iPhone

i want specific pages to be viewed in horizontal and Vertical view in iPhone. is it possible? Please send sample code ...

cellForRowAtIndexPath never called...

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 ...

removeItemAtPath dosn't work on the device

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...

iPhone - "Class" may not respond to "method"

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...

How to create weak reference in Objective-C?

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 ...

change a label from another view

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 ...

BING Map in iPhone Application

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...

problem with listener pattern using fast enumeration

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...

UIPickerView infinite rows

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...

iPhone SDK loading screen

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...

replace specific color in openGl drawing in xcode?

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...

Changing tintColor of UISearchBar inside ABPeoplePickerNavigationController

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...