iphone

How do I draw lines and rectangles on the iPhone?

I would like to draw a line and rectangle in my iPhone application, for that i want to used structure concept to draw line and rectangle.In strut shall i want to be struct line { float X1; float Y1; float X2; float Y3; color of line draw line function }; And similarly in case of rectangle. struct rect { float left X1; float top Y1; flo...

Linking error while trying to integrate FOMD application with mine.

Hi. i am trying to use FMOD example application "dsp_effectperspeaker" in my application. But i m getting error dyld: Library not loaded: @loader_path/../Frameworks/libfmodex.dylib Referenced from: /Users/asimahmed/Library/Application Support/iPhone Simulator/User/Applications/AF942B1F-A2CB-42D7-B878-47F3F7D51CAF/ChannelSound.app/...

NSString drawAtPoint Crash on the iPhone (NSString drawAtPoint)

Hey. I have a very simple text output to buffer system which will crash randomly. It will be fine for DAYS, then sometimes it'll crash a few times in a few minutes. The callstack is almost exactly the same for other guys who use higher level controls: http://discussions.apple.com/thread.jspa?messageID=7949746 http://stackoverflow.com/...

UInavigationcontroller and UItableviews

I have one issue with UInavigationcontroller In my firstview i have button.If i click that button it should open tableview. if i click that tableviewcell is select the nextview willbe open.In my nextview i have backbutton click return to the tableview.if doesnot navigationcontroller. Please help in this issue. ...

What is the default resolution of the image saved by iPhone UIImagePicker? is it 1500 x 2000?

Hi, i have problem trying to find out the default resolution of the images taken and saved by UIImagePicker. I'm trying to merge the photo taken and another image from my library and without knowing what's the size of the image, i'm not able to merge the 2 images correctly. Another question is that: are there different resolutions for t...

What is the best software for creating OpenGL ES models and textures?

Hi everybody What is best software for creating models , textures etc... for iphone development. From simplest to more complex programs. First thing that comes to my mind is blender , but I'm curious what everybody else is using and their opinions. ...

When to release a class with delegates

A quick question to delegates. Lets say, CLASSA has a delegate defined: @protocol MyDelegate -(void) didFinishUploading; @end In CLASSB I create an instance of CLASS A -(void) doPost { CLASSA *uploader = [[CLASSA alloc] init]; uploader.delegate = self; // this means CLASSB has to implement the delegate uploader.post;...

How to detect changes on UIPickerView ?

I want to detect changes of UIPickerView value. If UIPickerView respond to addTarget i used a code like this: -(void) valueChange:(id)sender { change = YES; } UIPickerView *questionPicker = [[UIPickerView alloc] init]; [questionPicker addTarget:self action:@selector(valueChange:) forControlEvents:UIControlEventValueChanged]; How...

Using ASIHTTPRequest to display full sites in UIIWebView

I have to login to a website that uses Windows Authentication. I am using ASIHTTPRequest to accomplish. The problem is that I am able to download and display the source code of the HTML page with UIWebView but I could not figure out how to display the full content of the page including pictures, javascript etc. Any ideas how to accomplis...

How to get rid of gap when I add my custom UIViewController to window?

I'm getting this gap at the bottom of my window after I add the view of a custom UIViewController. The gap goes away as the view is shifted down after I move to another view and then back. Here is the code in the app delegate: - (void)applicationDidFinishLaunching:(UIApplication *)application { // Override point for customiza...

Is there an off the shelf CMS that can be used as a back end for smartphone travel guide apps?

I'm wondering if there's an off the shelf CMS available that is similar to something like Mobile Roadie - ie: it will allow you to create multiple versions of one application? I'm looking to develop some mobile travel guides for iPhone/Android/Blackberry etc, and rather than get a CMS built, I'd like to see if there's something out there...

How to get active subview (UIImageView) from UIScrollView

I have several UIImage subviews in one UIScrollView. I'm trying to emulate iPhones's Photos app. To enable pinch zooming, I have implemented UIScrollViewDelegate and the one thing I'm unable to figure out is this delegate function: (UIView *)viewForZoomingInScrollView:(UIScrollView *)scrollView; How do I find out which UIImage subvi...

Wire the homepage so that it fires off a Push notification message to my iPhone every time someone lands on the page

I looking for a simple way to wire the homepage of my website so that it fires off a Push notification message to my iPhone every time someone lands on the page (just visiting in their browser). I'm aware this could become annoying! I currently send regular notifications to my iPhone using cron and curl to check sites / RSS feeds for ch...

PoptorootViewController fails then removes all Viewcontrollers

Trying to fix a very strange error, i have 3 view controllers that start from the app delegate and push each other accordingly. The 3rd view controller then has a toolbar button that calls the code here: -(void)showEventBrowser; { accelManeger.delegate = nil; NSLog(@"%u",[self.navigationController.viewControllers count]); [self.nav...

Position a UIView at the middle of a UITableView with CGRectZero frame

Hi, I have a UITableViewController view a UITableView that I alloc/init with a frame of CGRectZero : self.tableView = [[UITableView alloc] initWithFrame:CGRectZero style:UITableViewStyleGrouped]; I want to add a view at the middle of the tableView (a loading view with a UIActivityIndicatorView and a UILabel), but I don't know how to ...

Easy way to trigger a noise in iPhone OS?

For example, the first gen iPod touch is making sharp tick sounds when rolling a picker view. I need a easy way to trigger a sound for my unit tests. When a unit test fails, I want the iPhone simulator to make a noise so that I see it. Because I'm not looking at the console all the time for NSLog messages... ...

mpmovieplayercontroller sometimes has slow load time, what can be the reason? (iPhone)

mpmovieplayercontroller sometimes has slow load time, what can be the reason? thanks ...

How Can i reload data in tableview in view controller in iphone

Hi, I am new to iphone development. I have created 5 buttons in the view. On clicking the buttons it navigates to the corresponding views. On clicking the "News" button it navigates and displayed the parsing details in the table view.(This table view, I have created View controller and added table view using Interface Builder and i have ...

IPhone sdk stop the accelerometer from working when something happens.

Hi, I am using the accelerometer to move a few UIImageViews around the screen, at the moment the accelerometer only works when a NSTimer is at 0, this is fine. I would also like to make the accelerometer stop again when a different function happens. here is my code at the moment: -(BOOL) accelerometerWorks { return time == 0; } -(voi...

iPhone video player - Change player orientation (w/ Playlist)

Hi, I need to rotate the video player on iPhone (or let it autorotate). I know the webview solution, but here come the problem, I need to play several video (distant), and WebView can't provide me a stopSelector. I know the fact that setOrientation is a private API. Is there a solution ? ...