iphone

I am looking for sample code using bluetooth.

I am looking for sample code using bluetooth. Please teach when knowing. ...

how to display indicator

I cannot display Indicator View. ItemController.h #import <UIKit/UIKit.h> @interface ItemController : UITableViewController { UIView* loadingView; UIActivityIndicatorView* indicator; } @property (nonatomic, retain) UIView *loadingView; @property (nonatomic, retain) UIActivityIndicatorView *indicator; @end ItemController.m .....

iPhone: Getting Returned Data from MGTwitterEngine?

I call a method on the _engine and implement the requestSucceeded. I then print out the resuls and it makes no since to me. What may I be doing wrong? Can't figure it out. Call in my code: [_engine getRateLimitStatus]; Method that gets called when succesful: - (void)requestSucceeded:(NSString *)requestIdentifier{ NSLog(requestId...

Quartz 2D vs OpenGL ES Learning Curve

Hi, I have been developing iPhone Applications for a couple of months. I would like to know your views about the Quartz vs OpenGL ES 1.x or 2.0 learning curve. You can tell your perspective. My Questions are *I am a wannabe game developer, So is it a good idea to first develop in quartz , then move on to OpenGL ES or does it not mak...

How to list all devices in my wifi range in iphone.

I am using the reachability code from apple to find if my iphone is connected to the wifi. Next i would like to list all the devices that are in my wifi range. How should i do this. The other devices do not publish any service. I want to detect all devices in my wifi range and send that device a request for tcp connection. ...

How to push WebView in NavigationController

I want to display web view when table cell is selected - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { [uiWebView loadRequest:[NSURL URLWithString:@"http://www.google.com"]]; [self.navigationController pushNavigationItem:uiWebView animated:YES]; } log -[UINavigationController pushNav...

iPhone NSTimeZone: localTimeZone confusion

From what I understand, calling NSLog(@"Local Time Zone %@",[[NSTimeZone localTimeZone] name]); gives you the local time zone of the device. What it's giving me is "US/Central", and I can't find that anywhere in the list of abbreviations in [NSTimeZone abbreviationDictionary], or the list of time zone names in [NSTimeZone knownT...

count no.of images

hi Guys I have worked on Application and I am trying to Count the No of images in my resource folder and display no.of images in the Simulator Could any body tll me how to do ? give me code ...

How to link different precompiled libraries for different build profiles in XCode for iPhone?

My client is providing me with two precompiled libraries, blah-device.a and blah-simulator.a. How do I tell xcode to use blah-device.a in Device compilation mode and simulator in Simulator compilation mode? My client gives me these instructions Open the Targets group (in the Groups & Files panel), right-click the project icon,...

Does UIAlertView really show table view if too many buttons?

I've seen a number of blogs claim that UIAlertView from firmware 3.0 onwards will show a table view if too many buttons are added to it to fit in the alert box. However, I don't seem to find this the case, either in the simulator or on the device. Before I look at using one of the mechanisms for manually adding a tableview to an alert,...

how to update data to twitter from my phone app

I am creating a app that I want to have a button for the user to tell others on twitter about my APP and have them post it to their twitter account.. how can this be done im fairly new to iphone programming, but this will finish up my second app please help and thanks for all your advice concerning this matter. ...

how to use sortUsingFunction:context

appdata.items is NSMutableArray. I connot compile This code. Error code is "prop.173 has an incomplete type". NSInteger compareInfo(id aInfo1, id aInfo2, void *context){ NSDate* info1 = [aInfo1 objectAtIndex:2]; NSDate* info2 = [aInfo2 objectAtIndex:2]; return [info1 compare:info2]; } -(void)saveData{ NSData* data = [[NSMutab...

How to develop Iphone Applications on Windows Platform(Xp, Vista)

Hi folks can any one please let me know , How to develop Iphone Applications on Windows Platform(Xp, Vista).if so i have Windows System with XP OS How to install the software 'what is the software name and please let me know the Blogs and Free Downloads for Trail Versions Thank in advance Jagadeesh ...

Objective C - UILabel multiline vertical gap height

Hi, I have a multiline UILabel that can take a maximum of 3 lines. i.e message.numberOfLines = 3; Everything works fine, but how can I set the vertical gap between the lines? e.g between line 1 and line 2 etc? Please enlight, Tee ...

XMLParser Iphone Device Problem

Hi, i have developed an applikation which loads a specified url with an XML Parser. This URL changes sometimes, and every 4 seconds it reloads.(via NSTIMER) On the simulator it works perfectly but on the device it is always the same ( like a kind of caching) -(void)parseXMLFileAtURL:(NSString *) URL{ NSLog(@"Parsed XML URL: %@", UR...

[iphone] How to make objects flying around in a view

Hey, How is it possible to let some objects fly around and bumb at the end of the view and collide on each other. The second step would add acceleration of the objects by shaking. I haven't found a tutorial yet or some step to begin at. thanks a lot for your help :) Heres a picter of what i image(only a still) http://picfront.org/d...

[iphone] get touch coordinates (in the form of 0-480 and 0-320)

i dont get how to translate the coordinates of the iphone. if i make a single touch i get the coordinate. if i make a touch and keep it and release it it shows the difference of the starting and end point. how do i get the absolute position of the touch? thanks! -(void) touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { ...

Fetched Properties v Relationships (Core Data - iPhone)

I'm a new iPhone developer (of about 4 months or so) who is starting to look at Core Data. In the "Beginning iPhone 3 Development" book by Dave Mark it mentions that the main difference between fetched properties and relationships is that fetched properties allow lazy loading. However, I have seen other resources and accepted answers o...

What's the easiest way to calibrate the tilt setting for an iPhone app?

I'm giving the user of an iPhone app the ability to use the tilt controls when standing, sitting, lying down etc. The user adjusts for each position by going to a settings screen, holding the phone at the desired angle, and tapping a save button. What's the best way to do this in the code? The only thing I'm familiar with is the accel...

Change title of MFMailComposeViewController

I'm using MFMailComposeViewController for in-app email in my app, but I'm not able to change the title. As default it's showing the subject in the title, but I would like to set the title to be something else. How can I do that? I've tried: controller.title = @"Feedback"; but it didn't work. Here's my code: - (IBAction)email { NSA...