iphone

UITouch - Event not responding

Hello, I have the following piece of code that I'm expecting to run on a touch event: - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch; touch=[touches anyObject]; CGPoint point=[touch locationInView:self.view]; if (CGRectContainsPoint([billTotal frame],point)) { [self picker...

iPhone OS 4.0: NSFileHandleDataAvailableNotification not providing callback at file-end

I'm a bit new to iPhone development, so be gentle! I'm supporting an app which loads a wav file from a URL file-stream, and plays it back through an AudioQueue. We run a continual loop in another thread, and stop the Queue if we detect that it has no buffers in use, and the input FileStream has reached its end. In turn, we detect if th...

what is easiest way to save mms in pc?

dear friends, i want to save received mms in my pc through data cable or bluetooth automatically. any one guide me which phone supports functionality like this or is there any specific software available to achieve this? any help would be appreciated. ...

How to put 605 custom fonts in iPad application

Hello I put some custom fonts in the resources and add some entries to the plist file so I can use them... and everything is working fine... But my app needs to use 605 custom fonts and when I add more than 240 or 245 fonts the application won't respond to the fonts.. i.e. when I write some text using any of those fonts, nothing appears...

What's the difference between frame and bounds of a UIImageView?

They are both CGRects and my program behaves the same when I switch one for the other. ...

Can I import .obj files for use on the iPad

Is it possible to create 3D models in other applications (e.g. Vue Esprit) and then export these models as .obj files for use in iPad applications? ...

Can I load custom fonts from the documents folder instead of the resources in iPhone/iPad aaplication?

Hello everyone I am writing an iPad application and I have some custom fonts that I put into the resources and add some plist entries for them under UIAppFonts and I can build UIFont objects from them and everything is OK... Now what I want to ask, let's assume that I have this font file in my app documents folder, is there any chance ...

Iphone App - Project Structure

Hi all (again!) I was wondering if anyone can give me some advice regarding the structure of my iphone app. As a non programmer i've broken my app down into smaller projects, i.e. a project for each main function of my app (Twitter RSS Feed, 3rd Party API etc etc). The idea being that i don't swamp myself with code whilst i'm trying t...

How to move switch pages in iphone on finger slide?

i have created an iphone application and there is a forward and next button to goto next and previous page how can i implement the finger slide thing like in many iphone applications ? Any ideas ...

iPhone Facebook Connect SDK: login and request extended permission in a single call

OK, so I need my app to be able to post something on the users's wall but I'm not very happy with the solution of showing the login pop-up and then the extended permission request popup. Can it be done with only one popup? Or even with 2 pop-ups but triggered by a single API call? Thanks! ...

My app crashes when I run it on iPod touch OS 4.0

Hi Guys, I'm currently developing an app for the iPhone/iPod. I started developing with the 3.1 sdk and switched to the new 3.2.3 for 4.0. Also, I upgraded my iPod to OS 4.0. When I run the app on the iPod and simulator 4.0 the app crashes on an IBAction (pushing a button) that creates a game object and subsequently calls an animation ...

why not https json request(rest services) does not work in phonegap (iphone) app?

i am trying to call https request in phonegap iphone app using jquery's method getJSON(),though it work fine in normal safari,but in mobile safari,it gives error like Download Failed-Safari cannot download this file ...

Multitasking on iOS4: Does it work only on iPhones?

I have iOS 4.0 on an iPod Touch 2nd Gen. There's absolutely no multitasking working. Nothing goes to the background, and double-tapping the Home Button results in just nothing. I wanted to test my app against this new feature, but it appears that it doesn't work for iPod Touch devices? Does that only work on the iPhone? Or is there s...

Handling an external screen on the iPad

Ok, I think its possible I've misunderstood the correct way to implement an external screen on the iPad and it is causing me a lot of headaches. Since this is a long post, what I'm trying to do is create and send a view to an external screen over VGA, and remove the screen once I'm done with it. I'm having retain count issues so can't ge...

Simpler NSLog macro

Hi, using iphone sdk 4.0 I want to remove the function name stuff from this macro but am struggling #define LOG(fmt, ...) NSLog((@"%s " fmt), __PRETTY_FUNCTION__,##__VA_ARGS__) i tried #define LOG(fmt, ...) NSLog((@"%s " fmt), ##__VA_ARGS__) but this results in a crash!! I want to be able to log like this LOG("text to log"); LO...

warning: incompatible Objective-C types

Warning: incompatible Objective-C types 'struct NSArray *', expected 'struct UIFont *' when passing argument 1 of 'setFont:' from distinct Objective-C type Code Like: lblTemp.font = [UIFont fontNamesForFamilyName:@"Arial"]; // Warning comes here lblTemp.font = [UIFont fontWithName:@"Arial-BoldMT" size:13]; [cell.contentVie...

iPhone save records to a file permanently

Hi Friends, I have few records( with many fields) which are to be saved permanently. When I open my application next time , I need show saved files. I also need to replace few records sometimes. Can anybody guide towards to the best aproach with sample code? Thanks in advance. Regards, Malleswar ...

substring from string in iphone

I have the following string somestring =" "path- of -my -image" alt="32.246°N 115.297°W" align="left" hspace="20" now i want only the path of the image from this string Actually i am getting this string from webservice which will change every time as my xml parse so i can't use indexvalue can any one help me. ...

iPhone SDK - Changing Xib files (partial curl)

I am creating an iPhone app for iOS 4 using the newest SDK. On one of my pages I would like the user to click a thumbnail of a photo and then a partial curl transition style take affect to show a full sized version of the image. On the page with the full sized image I have a toolbar with a "Back" button and a "Select" button. When I...

Displaying a detail view from within a tab bar controller

My app has a UITabBarController as its main view. The tab bar has three tab items, one of which contains a UIViewController with a MKMapView on it. The MKMapView has annotations which have disclosure buttons on them. UITabBarController UIViewController (one of the tabs) MKMapView MKAnnotation DisclosureButton Wh...