iphone

iphone ipad class vars from info.plist

Hey Guys, So I have a lot of configuration settings in the plist, but do not like to invoke the infoDictionary all the time when accessing the objects. I was thinking to load all the configuration into a settings class and make that accessible throughout the application. So in the plist, say I have a key "font" and a string "Arial". ...

iAd ==> Device connecting to xcode AdDomainError?

When i connect my device to xcode, and run the application, i get an AdErrorDomain, is this suppose to happen on debug mode? the simulator displays test ads, Device doesn't display anything Device through xcode gets AdErrorDomain ...

AccessoryView on TextView without Keyboard?

Hi! I'm learning about AccessoryViews and testing the Apple example: KeyBoardAccessory I'm trying to show the accessory view avoiding the Keyboard to show, but I can't do it :-( I'm returning NO in textViewShouldBeginEditing to avoid keyboard and animating the resize of the TextView before return, but nothing happens. What I'm doing ...

How do I send my application to background?

I want to run my application in background ... What things must I do to support this? ...

Setting Framework Search Paths?

I have an XCode project where when I click on Project->Edit Project Settings I have things set to iOS 3.2, but when I build, XCode sets the Framework Search Paths to iPhoneOS3.0.sdk. I've set the following using Project->Edit Project Settings: Base SDK = iPhone Device 3.2 iPhone OS Deployment Target = iPhone Device 3.2 Targeted Device...

Singleton object memory management

In my code, I use a singleton object as a central point in my app to load and cache images the app frequently needs, so I don't have to do resource-intensive memory allocation each time I load an image. But there are times during the execution of my app where memory usage gets intense and I would like to release the cached image data. C...

mtom using axis and iphone

hi, I am new to webservice stuff. I have a axis service which sends a response which has a MTOM attachment of file. without using utilities like wsdl2objc is that possible to extract the file from the response ? It is a zip file. if yes please let me know how to do it. ...

Why does this random number sometimes get set to -1?

Every now and again, the following comes out as -1 int randomIndex = random() % [directionsArray count] - 1; The init method for this class is where directionsArray is created and srand() is called. It looks like this - (id) initSprite { if ( ( self = [super initSprite] ) ) { speed = 1; directionsArray = [[NSArr...

UITableView: custom gestures make it scrolling no more

I have an UIViewController which contains a UITableView (subclassed) and another UIView (subclassed). They are on the same hierarchy level but the UIView is added last so it is the frontmost. I overrid touchesBegan/Moved/Ended to intercept the Gestures from the top UIView: my goal is to get the selected UITableViewCell and, if double tap...

UILabel text offset/indent

How can I add an indent or offset to text inside a UILabel? It needs to be a specific pixel size, independent of the font size. ...

sending data to previous view in iphone

Hi, What are the possible ways to send data to previous view in iphone. Without using Appdelegate. Because there are chances for my view class to be instantiated again. ...

how to change button image when button pressed

i want to show different image for button after user taps that button .. how would i do tat ...

text search too slow on sqlite db on tableview on iphone

hi, I have a large table of around 2500 entries. I am displaying it on tableview. however the search bar is too slow while doing dynamic search. ie I am filtering the table everytime the user puts in a character on search bar. following is the code: - (void)searchBar:(UISearchBar *)theSearchBar textDidChange:(NSString *)searchText { ...

getting pixel data/modifying it

Ok so what I am trying to do is get an image from the camera roll, displaying it through the image view, and then getting some pixel data and modifying it (change brightness levels through the RGB values of the pixels). I'm a beginning dev and I can't seem to really get the hang of CGImage to actually get the pixel data. Could anyone hel...

UISearchBar:textDidChange: return value when empty?

Hi, does anyone know how to test when the last character in a UISearchBar is deleted. i.e. you type ... Gary > return "Gary" Gar > return "Gar" Ga > return "Ga" G > return "G" > return ??? . -(void)searchBar:(UISearchBar *)searchBar textDidChange:(NSString *)searchText { [self FG_Filter:searchText]; } I was thinking ...

UINavigationBar unresponsive after canceling a UITableView search in nav controller in tab bar in a popover

Ok, this is an odd one and I can reproduce it with a new project easily. Here is the setup: I have a UISplitViewController. In the left side I have a UITabBarController. In this tab bar controller I have two UINavigationControllers. In the navigation controllers I have UITableViewControllers. These table views have search bars on them. ...

iPhone - Unloading a cocos2d game that is running inside a View Controller

So here's the deal, I've been making a game based off of the open-source tweeJump as a small part of a larger application. I have successfully gotten the game to load (from a tableView) and am able to play it, but I am not quite sure how to stop running cocos2d and return to the table view that starts the game. I have tried implementing...

How to add how-to videos tutorials to iPhone app?

I am working on an update to my iPhone app and I would like to add very quick video tutorials on how to do things in the app, e.g. how to back up & restore. What's the best way to do this? I could link to online tutorials but I don't want to kick any of my users who lack multitasking out of the app. I am thinking about including the vide...

Customizing the UIImagePickerController for iPad

Hi all, I was implementing an iPad application. For this I need to customize the UIImagePickerController, I mean to say that I need to implement it with out using UIPopOverViewController that is my requirement. I tried in many ways to support my requirement but I didn't su Is it possible to implement?. Can you guys please help on this. ...

uiwebview reset zoom programatically

hi, Is there a way to zoom out or reset a uiwebview programatically ? if yes how ? ...