iphone

UIModalPresentationFullScreen gives error in UniversalApplication

hi all, i am created Universal application, in that i used UIModalPresentationFull, for displaying MFMailComposerSheet in iPad, which helps me to show the full screen of a MailComposer view in landscape view of ipad. When i run the application in ipad simulator i works well. If i set it to iPhone simulator 3.0 or 3.1.3 it shows the error...

UITableViewCell accessory not positioned correctly after rotating UITableView on iPad

I have an iPhone app that I've converted to a universal app. The app works fine in all orientation on the iPhone. However on iPad when I rotate a table view, the UITableViewCell accessory is not repositioned correctly (see images below). I'm using a standard UITableViewCell of type UITableViewCellStyleSubtitle. The rest of view is drawn...

How to attach mail with UIImageView ?

The current solution is i need to save image and then load attachment with file is it possible to load from UIImageView directly? any idea? ...

Why use NSFetchedResultsController?

Hi All, Core data provides the method "executeFetchRequest" in NSManagedObjectContext class, which we can use to fetch data from tables and use it whatever the way need to. Now there is another way by using NSFetchedResultsController and providing it to UITableView to fetch and data from tables. My questions are now: Which way is fa...

store NSXMLParser to plist file

Hi Guys Please guide me how to store NSXMLParser to plist file in iPhone Thank you. ...

When manually triggering a KVO event, can the change dictionary be amended?

I have a data model, composed mostly of an NSMutableArray 'contents' and NSMutableDictionary 'contentsByName'. I have ViewController objects that I wish to observe changes in the data model. I have a property "count" on the model that returns the size of the array 'contents' and I can trigger a KVO change observation with willChange: an...

help on button.tag = indexPath.row

hello, I have this code on my cellForRowAtindexPath, with a custom cell and a button on the each cell. - (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *MyIdentifier = @"tblCellView"; TableCellView *cell = (TableCellView *)[tableView dequeueReusableCellWithIde...

releasing and retaining NSString* properly

Hi all i'm still new to iPhone development, but had strong experience with other programming languages. The thing that makes me pull my hair out is the Obj-C memmory management and releasing / retaining properly. I know the concept, i know "once i understand it will be easy" but i'm not quite still there, and that makes me crazy. Here i ...

recognize the face & distort it

Hello, We have to create an application which can take a photograph and can recognize the face and can distort it in a certain way. Below is an example: http://itunes.apple.com/us/app/fatbooth/id372268904?mt=8 Any ideas ? is it possible using OpenCV library only ? Thanks Tariq ...

Do I need to convert NSUInteger to size_t?

If I have the following code: NSUInteger i, count = [pages count]; for (i = 0; i < count; i++) { Page* page = (Page *)[pages objectAtIndex:i]; [page setPageNumber:[i unsignedIntValue]]; } PageInfo.pageNumber is a size_t. Is it still necessary to use [i unsignedIntValue] or do I just assign i directly? ...

Is this a valid way to build and send NSData through GameKit?

Hi guys, Its y first time trying to use NSData and Gamekit. So was wondering am i packing the data properly? - (void)sendNetworkPacket:(GKSession *)session packetID:(int)packetID reliable:(BOOL)howtosend { // the packet we'll send is resued static unsigned char networkPacket[kMaxTankPacketSize]; const unsigned int packetHeaderSize =...

Programmatic View Offset by Status Bar?

I am just looking at setting a up a custom UIViewController programatically (see code below) and I am just curious about the white line I am getting at the bottom of the display, I don't see this when I create the view using a NIB in InterfaceBuilder. Is it just a case of offsetting the frame down by the height of the status bar or am I ...

How to change tabBarItem highlighted color to a color other than blue(iphone development )

I want to change the default selection of tabbaritem from blue to some other color ... ...

Parent UIScrollView detecting child UIView's touches

Basically... I have a UIScrollView subclass which you can add a target and selector too, which get fired if a touch event is detected within the view. I am using the scroll view as an image gallery, and the touch inside the scroll view is used to fade out the HUD components (UItoolBar, etc): @implementation TouchableScrollView - (voi...

Compare sounds inside of the App

Is it possible to compare two sounds ? for example app have already a sound file mp3 or any format, is it possible to compare any static sound file and recorded sound inside of app ? Any comments are welcomed. Regards ...

Screen Resolutions and Frame Size?

I am curious about how the iPhone4 works out the size of frame items, for example: - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { MyController *tempController = [[MyController alloc] init]; [[tempController view] setFrame:CGRectMake(0.0,20.0,320.0,460.0)]; [self...

Paging UIScrollView with peeking neighbor pages

Look at the App Store app, on either the iPhone or the iPad, specifically the piece on the screen of app details that shows screenshots. The screenshot viewer shows you the screenshot you're looking at, and the edges of the next and previous one. I need to implement something much like that. How I've done it is fair to poor: I built a U...

How would I implement my own CSS parser in an iPhone application?

I've successfully converted an HTML file into text, but I would like to apply CSS to this to style it myself. How would you recommend I go about implementing my own CSS parser? Is there an available library that I could use for this? ...

Launch application from alert view of push notification

How can i launch my application when user taps the view button in the alert that came due to push notification? ...

iOS Mail Message View like UIWebView

The Mail Message View is as I see it a scroll view with a container, the container again has a header (including the from, date, and subject field) and the content webview. Now when you zoom in the webview, the header stays at the same place and size. Is it possible to do a view like this with the public APIs? I see as problem that th...