iphone

Play sound when UIScrollView is scrolling

Hey, I have a scroll view that can be scrolled to the sides (only left and right, not up and down). I want to play a short sound (less than a second) whenever the scroll view is moved X pixels to either side. How can this be done? Code samples will be greatly appreciated... Thanks, ...

Using .align in inline assemby

Hi, I'm using ".align 16 \n\t" in some inline ARM assembly that is implementing some loops to align it on a 16 byte boundary however gcc asm compiler is complaining that alignement is too large i want to implement -falign-loops=16 in asm for a particular loop Thanks ...

How to execute an NSUrlConnection in a separated thread?

Hello everybody, I am moving my first steps both with url connections and threads so bear with me if the question may result trivial. Basically I would like to execute an NSUrlConnection in a separate thread (even if this may result 'dangerous' as many documents state). Before deciding whether to adopt this solution or not I should manag...

can we purchase book via paypal mobile checkout from within iphone application ?

in connection to one iphone project i need to ask that if i purchase ebooks from webview of iPhone (from with in application) application using paypal mobile check out of paypal () then Apple will approve this app or not ? do you know any on this by any statement from apple or by personal experience or so ? please suggest, i am stuck ...

Removing UITextField from superview does not make it disappear on screen

I have the following code // Breakpoint here [label removeFromSuperview]; [label release]; label = nil; stepping through it with the debugger outputs (gdb) po [self subviews] <NSCFArray 0x476af70>( <UIImageView: 0x47581a0; frame = (0 0; 232 81); opaque = NO; autoresize = W+H; userInteractionEnabled = NO; layer = <CALayer: 0x476b3d0>>...

How to hide tabbar for some pages and make it visible again?

I've got an application that uses a Tab Bar Controller along with a Navigation Controller.But for some pages I want to hide both bars(Tab & navigation) after that those will be visible again...I am able to hide navigation bar & also done with making. it appear after some pages. I am able to hide tab bar with - (BOOL)hidesBottomBarWhenPu...

UIImagePickerController reloads view after its dismissed?!

I create the picker: UIImagePickerController *imagePicker = [[UIImagePickerController alloc] init]; imagePicker.sourceType = UIImagePickerControllerSourceTypeCamera; imagePicker.delegate = self; imagePicker.allowsEditing = NO; [self presentModalViewController:imagePicker animated:YES]; and I handle the didFinishPickingMediaWithInfo: ...

There is no SDK with the name or path 'iphoneos2.0'

Hi I have spent endless hours trying to solve this but with no luck, please help! I keep getting this error. There is no SDK with the name or path 'iphoneos2.0' I am running some templates at http://appsamuck.com/day1.html Thanks Gautam I'm running the latest sdk, in the pop up menu (simulator) there is an option iPhone Device 2.0 ...

UITableView and UIImage inside a UIView

Hi, I am developing an application that currently has a View Controller (call it ViewControllerX). The MainWindow.xib file contains the following: File's Owner UIApplication First Responder UIResponder AppX App Delegate myAppDelegate myViewControllerX myViewControllerX Window ...

View Window Not Opening in Interface Builder

When I double click the XIB file in Xcode, Interface Builder typically launches a few different windows, one of which is the View window. For some reason, however, the View window isn't opening for one of my XIB files. If I open any of the other XIB files, however, the View window does open. I'm not sure if there's a way to manually lau...

How can I retain the data stored in plist from UITextField when application is restarted ?

I am using the plist to store the data entered in the UITextFields. But, when I restart my application all the data entered previously was deleted. How can I retain the data in the Plist. I have a UITableView and when a cell is touched a view appears with two UITextFields. nameField and descriptionField. I stored the data in this way. M...

Display "custom" view (various images, various text). Should I use UIWebView?

First: No, none of the content should be loaded from the web. All content parts are shipped with the main bundle. I have n images and mass of text (including lists). Instead of building all view parts programmatically in objective-c if was thinking of using an UIWebView and build "only" the HTML dynamically. Does anything speaks agains...

Delegates does not work properly

I am new to iPhone development. I am converting the date to the desired format and set it to the delegate and get its value in the another view. The session restarts when I tried to get the value from delegate. If I set the original date and not the formatted date in the set delegate, then i able to get the value in the another view. If...

Adding new row at the top of the cell in iphone

hey all i have a program for inserting new now dynamically in table view. But it displays the inserted row the end.How can i display the inserted row at the first position. ...

Is it possible to create a custom, animated MKAnnotationView?

I'm trying to simulate the user location animation in MapKit (where-by the user's position is represented by a pulsating blue dot). I've created a custom subclass of MKAnnotationView and in the drawRect method I'm attempting to cycle through a set of colors. Here's a simpler implementation of what I'm doing: - (void)drawRect:(CGRect)rec...

adding a little swirl icon when loading

im sure this is completely simple , infact i'm sure i have already seen the code for this somewhere , i just cant remember for the life of me where. all i want to do is add the little swirl image thing whilst loading. can anyone point me in the right direction Thanks Richard ...

Need help getting parent reference to child view controller

I've got the following code in one of my view controllers: - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { switch (indexPath.section) { case 0: // "days" section tapped { DayPicker *dayPicker = [[DayPicker alloc] initWithStyle:UITableViewStylePlain]; dayPicker.rowL...

Running python/ruby script on iPhone?

From the recent news from the Apple, I learned that one has to use C/C++/Objective-C for iPhone App. Accordingly, it's not possible to use MacPython or similar to make iPhone App. But as the python/ruby interpreter itself is written in C, isn't it OK to make python/ruby interpreter for iPhone to run the scripts on iphone? Is this poss...

iPad: Better way than invisible button on background to let users exit entries?

On iPad/iPhone, Do you still need to make an invisible button on background to let users exit entries? Is there a better way to dismiss the keyboard when users click outside of an entry? ...

Objective-C for iPad, Where do you put IBOutlet? In instance variable decleration or @property decleration?

Objective-C for iPad, Where do you put IBOutlet? In instance variable decleration or @property decleration? Is there a difference at all? ...