iphone

UIWebView does not show scrolling bars on iphone Simulator

CGRect fullFrame = CGRectMake(10, 150, 300, 200); UIWebView *fullTextView = [[UIWebView alloc] initWithFrame:fullFrame]; fullTextView.userInteractionEnabled = YES; NSString *imagePath = [[MDImageManager sharedImageManager].imagesPath copy]; imagePath = [imagePath stringByReplacingOccurrencesOfString:@"/" withString:@"//"]; imagePath = ...

how can I get the topmost view at any time in iphone sdk4?

how can I get the topmost view at any time in iphone sdk4? ...

Play iphone audio in down "ipod" mic

It only plays in ear mic! I use Remote IO to playback OSStatus status; // Describe audio component AudioComponentDescription desc; desc.componentType = kAudioUnitType_Output; desc.componentSubType = kAudioUnitSubType_RemoteIO; desc.componentFlags = 0; desc.componentFlagsMask = 0; desc.componentManufacturer = kAudioUnitManufact...

What to do to make the app "qualified on iOS 4"?

I have not had much time to read through all the documentation for the 1500 more features included in iOS4, so right now I have 2 questions: If the app is just a usual utility application, what to do to make it "qualified on iOS 4"? If the app uses a timer to refresh all the items on the screen every one minute (requires redrawing of...

iphone asynchronous file load?

is there way to load local files in iphone asynchronously? I load uiimages for my uitableview using this: NSData *imageData = [[NSData alloc] initWithContentsOfFile:fileName]; UIImage *cachedImage = [[[UIImage alloc] initWithData:imageData] autorelease]; but it is slow, because main thread is locked or something until NSData finishes ...

Is anyone using Sencha Touch for mobile development?

We're evaluating Sencha Touch for mobile development. Has anyone used this yet (I realize that it's still in beta), and if so, what are its strengths / weaknesses? How does it compare to alternatives? It certainly sounds compelling. Thanks! ...

Tracking down EXC_BAD_ACCESS without NSZombie?

I've spent two days on this and I still can't find the cause of the crash. I know it has something to do with trying to access an object that has been freed but I don't know which access or which object. Whenever I google trying to find the source of EXC_BAD_ACCESS people suggest using NSZombies. The problem is when I enable zombies...

Base SDK Missing???????

I FINALLY got the new version of xcode and the iOS4 downloaded and was finally going to attempt to put my first app onto a device. I was going through the provisioning profile and got to the point where I needed to open xcode - then all it says in the "Device" pulldown is "Base SDK Missing". WTF?? If I go to Project - Set Active SDK -...

Make 2 doLogs display on the same line.

- (void)reverseGeocoder:(MKReverseGeocoder *)geocoder didFindPlacemark:(MKPlacemark *)placemark { [self doLog:[placemark.thoroughfare description]]; [self doLog:[placemark.locality description]]; if ([geocoder retainCount]) [geocoder release]; } Displays as: How can I make this work so that I can display these (thoroughfare & locali...

Invalid receiver type 'NSInteger' when setting NSInteger property

I get an error "Invalid receiver type 'NSInteger'" on this line in my implementation of a simple class: self.price = p; // this line throws error Should I be specifying price as copy? More details: header file: @interface SafeItem : NSObject { NSString *name; NSInteger price; NSString *category; NSInteger it...

Do background applications *ever* quit in iOS 4?

I don't fully understand Apple's iOS 4 model, I've been poring through documentation for hours, but I still appreciate some help. Do backgrounded iPhone apps ever quit? For example, when I close a location-tracking app such as Loopt, it will be backgrounded but will it subscribe to the OS's significant locations service? According to ap...

How to dynamically layout UIViews for a UIViewController

Hello, (For example) I would like to have my background image – a UIImageView – always the same size as the UIViewControllers view. I am unable to figure this out, but sure it is possible. I'm making some UI Elements which I would like to reuse, and which can layout dynamically depending on how big my view controller's view is. How ca...

Universal iPhone/iPad project with iAd framework

Hi folks, how can I set up a Universal project which has support for iAd (just in the iPhone app)? Using the iPhone SDK 4, let's suppose I do the following steps: Open XCode; Go to File > New Project ; Select Window-based application (or whatever), choose Product: Universal (and after choose a name for the project). It will create a...

Flash CS5 and the App Store TOS

Has Apple been known to recently reject apps that were created in Flash CS5? Also, If I submit an app that violates the TOS, am I risking my Paid Developer status, or just having my app rejected? ...

Creating a custom keypad iphone sdk

I wanna develop a custom key pad by disabling the system keypad. I mean I need to have my own pad with my own language letters placed on it. Is that possible to do. If so please gimme idea to start.....thank you ...

Iphone ==> Leak - [NSCFString substringWithRange:] ???

My app uses a lot of substringWithRange method, almost all over the place. Reading messages from the server (socket), and separating the string to, populate data on the screen. I get random leaks on [NSCFString substringWithRange:], about 128 bytes leak after running the app for 40 minutes. How can a substringToInsex, or substringFromInd...

UIWebView loadHTMLString format

Hi, I'm new to the whole "iPhone Dev" world, and I am creating a simple app which has a feature to see the latest entries from a number of different Wordpress blogs. I am able to grab encoded content ( node) from the RSS feeds and display it easily enough using a UIWebView and the loadHTMLString function. What I cannot figure out how ...

How to change background image of a button and get it updated instantly?

Im developing a memory game. As i click on a button I want the background to switch. When I click on the card the second time i want the background to switch for a second and then go back to the original (if it wasnt the correct card). But the background of the buttons are not changed until i return from the method (buttonPressed). Why i...

iphone - initializing view controller referenced from application launch

My data is stored in a member variable (NSArray) of a view controller. The problem I'm running into is that my data is loaded from a database on application launch, but the NSArray isn't initialized until later, so the addObject calls silently fail. I've tried putting breakpoints on the init, initWithNibName, viewWillAppear, and viewDi...

Really best practice to retain IBOutlet view elements?

I keep running into situations with UIViewControllers containing a large amount of IBOutlets connecting the controller to its view's subviews (typically UILabels). Following "best practices", i.e. use retain on all UI elements: @property (retain, nonatomic) UILabel *theElement1, @property (retain, nonatomic) UILabel *theElement2, ... ...