iphone

Detect and handle, or override, clicks on a navigation bar

I have an app where I've pushed two items onto the navigation bar. The top item, which ends up as a 'back' button, should have the function to jump all the way back to the start page, which is a list of web news. The other one simply displays a logo. The boss wants a navigation bar look and feel but with a simple function, so the user ca...

How to create multiple subtitles on a map annotation callout on iPhone

Hi all, Currently I'm stuck on this problem of showing multiple lines of subtitles on a map annotation callout. I've found some tutorials that provides a custom callout, however, I'd prefer to use the default callout view, but with multiple subtitles (2 lines of subtitles, for example). Thanks in advance! ...

Problem in getting response from webserver

Hi guys I am sending data to webserver in the Querystrings by creating URL dynamically. When I view that URl in UIAlertView it shows me correct one. And when i try to get response using NSURL code, it does not respond. Below is the code. NSString *uu = @"http://www.zenhomeenergy.com/ZenIphoneServUpdate.aspx?CustomerID=11&FirstNam...

How to make the view of a UIViewController to stick to the bottom of it's superview?

Programmatically, and not with using xib files? UIView's autoresizingMask is not really the right thing, I think. Since it's not about resizing but laying out. I couldn't find layout masks. But Interface Builder seems to allow to attach a view to top, left, right, center or bottom. So there must be a mechanism. ...

How to change pop view controller animation on back button ?

Hi all , I am pushing my view controller with the following statement : [[self navigationController] pushViewController:self.customViewController animatedWithTransition:UIViewAnimationTransitionFlipFromLeft]; Now when I am pressing the back button I want to animate it with the uiviewanimationtransitionflipfromright . like [self.n...

set different volumes inside app

i'd like to set the volume inside the touchesBegan action on half the volume of the IBAction. - (void) awakeFromNib { [super awakeFromNib]; engine = [[Finch alloc] init]; E = [[RevolverSound alloc] initWithFile:PATH(@"E.wav")rounds:9]; } -(void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event { UITouch *touch = [[event allT...

How to get opacity in increasing order in uitableviewcell in iphone?

How to get opacity in increasing order in uitableviewcell in iphone? I want to get the screenshot which is on itunes typed D&G. ...

how to create flip page application in iphone

I want to create flip page application. in this application take input as a pdf and then after i want to convert that pdf in to flip page application. Please give me hint. ...

Problem with Xcode and iPhone preference files

Hi, I created four language files for my app: two for the preferences and two for the strings. I added them into Xcode and it works great on the phone but the string files are shown as "Localizable.strings (de)" and "Localizable.strings (en)", while I have two files called "Root.plist" under the "Settings.bundle" in the groups "de.lproj...

How can you connect an iPhone to a Mac via Bluetooth?

Is is possible for an iPhone application I'm writing to connect to a Mac via Bluetooth? We don't have direct access to the Bluetooth API, so how would I go about doing this? ...

using core data with web services

Hi. i am a noob in xcode. I am developing an iphone app where i need to send and receive data from a web service. And i need to store them temporarily in my app. i dont want to use sqlite. so i was wondering if i should use core data for this purpose. I read some articles but i still dont have a clear picture of how to do it, coz i have ...

How i change the color of pagination dots of UIPageControl?

Hi, I developing an application in which i want to change the either color or image of UIPageControl pagination dots. How i change it? It is possible to customize UIpageControl on above scenario? ...

Switching view controllers crashes with an uncaught exception

I'm trying to switch views between view controllers in my iPhone app, but it crashed. Basically I'm switching from mainScreen to test. I get an error in the debugger: 0x01d6a000 <+0000> push %ebp 0x01d6a001 <+0001> mov %esp,%ebp 0x01d6a003 <+0003> int3 0x01d6a004 <+0004> leave (HIGHLIGHTED) 0x01d6a005 <+0005> ret ...

how to read pdf file in iphone

I want to read pdf file in iphone/ipad and i want to give animation(turn page) effect each page of pdf. ...

localize many images in Xcode at once?

I have this project that i need to add a translation to. I already know how to add localisation to single image files, but there are 200+ images with text on it in that project. Do i really have to click one file at a time, "get info", click "add localisation" enter the Language and click OK for every file? When i select multiple images ...

Limit Annotation number in Mapkit

Hi all, I want to stop my app from loading more annotations after they are all added ( they are added by the user one by one), as the app otherwise crashes. How would you do that? the following code is what i think is important (void) loadAndSortPOIs { [poiArray release]; nextPoiIndex = 0; NSString *poiPath = [[NSBundle mainBundle] ...

How to overwrite a convenience constructor the proper way?

For example I want to overwrite from UIButton: + (id)buttonWithType:(UIButtonType)buttonType So I would do: + (id)buttonWithType:(UIButtonType)buttonType { UIButton *button = [UIButton buttonWithType:buttonType]; if (button != nil) { // do own config stuff ... } return button; } is that the right way? Or did I mis...

iPhone Documents directory and UIFileSharingEnabled, hiding certain documents.

I want the user to be able to access the files in the documents directory but am using core data and dont want the user to be able to access the store (the sqllite db), can i hide it from the user while still allowing file sharing, or can i put it in another directory where it will still get backed up? ...

SqlLite for iPhone issues/bugs/problems ?

Hey there, I am planning to develop an iPhone application heavily relying on sqlite DB , from different links I have gone through this seems to be a great tool and has some really good support. As my app is still in the planning process I would like to ask if there are any Issues with SQLlite database ? from memory management to Que...

Shake based application

hello all, i want to develop an application which deletes rows from a table view when somone shakes the iPhone,can someone suggest me how to proceed ...