iphone

UIImagePickerController image editing not working

I am having a problem with implementing UIImagePickerController. When the controller loads, it displays modally, and allows the user to select the image. Good so far. Yet, then when it moves to the editing phase, it often displays somewhat corrupted view (the image cropping box is halfway off the top of the screen) and their is no imag...

[iphone] UIView not responding to touches after 'removeFromSuperview'

In my app delegate, I am creating a tab controller with a bunch of view controllers for it and then a separate UIViewController that I show as the top-most view until the user performs a certain action. I'm initially covering up my tab controller with the second controller but eventually, the second controller is dismissed via 'removeFr...

Creating and canceling an NSURLConnection

I have a NSURLConnection that is working fine when I allow the load to complete. But if the user hits the back button, meaning the webview will dissappear, I want to cancel the NSURLConnection in progress. But if have the webview call into this class when viewWillDissapear is called, and then I do: [conn cancel] I get an NSINValidArg...

Filling a Nav Bar with an image

I want to completely fill a nav bar with my own image. The image I created is 44 by 320 pixels, which I believe is the size of the nav bar. I use the code below to put the image in the nav bar. This works fine, but the image does not completely fill the space. It is filled vertically, but there are a few pixels on each side (both left ...

selection Menu like Tap Tap Revenge 3

Hi I am wondering how to achieve selection menu like tap tap revenge 3 have.Do I need to make a whole custom class or any help which class should I drive my subclass.I tried to modify UIPickerView but I cant change background image and frame(both is private). Thanks Mrigank Gupta Here is the link of image(not having reputation to post...

Add a button in a UITableViewCell when UISearchBar has no results (like Mail app)

I want to mimic the behavior of the Mail app when no results are found from the UISearchBar, and show a cell with a link to call a method. I can't figure out (or find anywhere) how to do so. The closest I think I've come is the following (which I've added into my code) if ([self.keys count] == 0){ [self.tableView beginUpdates]; ...

UITableViewCell cell.editingAccessoryType not working...

I have a tableView. Everything it set up and working. I had cell.accessoryType working fine, but not once have I gotten cell.editingAccessoryType to work. It worked with that deprecated method, but with the new one...no luck. Here's my code, at least for the first section: - (UITableViewCell *)tableView:(UITableView *)tableView cellFo...

Is fast UILabel rotation possible?

Hello all, I want to work in landscape mode only and so far the only way I can get the appropriate coordinate frame in the rest of the application is by rotating the main window using: CGAffineTransformMakeRotation(3.1415/2.0f); which rotates all subviews as well. It works great, except when I want to draw UILabel, frame rate drops li...

iphone textfield focus clears the value

Hi, I have 4 textfields in a screen. Consider all textfields have some text in it. When i focus/ click on any textfield the value previously entered in the textfield disappears. How can I restrict this behavior? Any ideas? Thanks, TF ...

iPhone Application crashes in "AdHoc" mode

Hi guys, i got a little application which is working very well with my "debug" configuration on my phone and in simulator. i created a adhoc provisioning profile, and added a "beta" configuration to it. trying to launch the application with the ad-hoc configuration crashes my application immediatelly. the console output is: Running…...

iPhone, Where do I have to save user generated files if I want them to stay there after an app Upgrade (new release)? is Documents directory good?

I have an app that lets user record their own audio. By now I'm saving those files into Documents directory. My question is: if I will release a new version of that app, will user recorded files get deleted? Is there a better place to store user generated audio files? Should I use NSUserDefaults for data that stay even after app upgrad...

how to add more than 100 uiimageviews in uiscrollview

i have an uiscrollview and i add one by one uiimageviews but when i add more than 40 objects i have problem with memory i guess and the app crashes...what should i do? i am trying to make an app like photo viewer from apple! Help please! i do not want thumbnais i just want to show the next image when the user flick from one to another b...

how to use ABRecordRemoveValue to remove a birthday?

Hi all, i'm using the following piece of code to delete dates from a phonebook entry, but i'm not able to get it to work. BOOL success = ABRecordRemoveValue(abRecord, kABPersonBirthdayProperty, &error); i also tried using this BOOL hasUnsavedData = ABAddressBookHasUnsavedChanges(ab); if (has) { BOOL save = ABAddressBookSave(ab, &...

is there an iUI for the Android

Hi, Im developing for both iPhone and Android. For iPhone im using iUI to show what the user interface would look like from a browser. Does anyone know if there is a similar javascript/css library which would allow me to mock up the Android interface? ...

UISearchBar with hidden UINavigationBar

Hello, I have the search bar in the top of the table and the hidden navigation bar. Along with UISearchBar I use UISearchDisplayController. UISearchDisplayController has the possibility to bring forward the navigation bar. So, when I tap the cancel button in the search bar, the navigation bar fly's down. How can I dismiss this possibili...

What could I do in NSURLConnection -connection:willCacheResponse: ?

The documentation says, I can do: Return Value: The actual cached response to store in the cache. The delegate may return cachedResponse unmodified, return a modified cached response, or return nil if no cached response should be stored for the connection. What happens when I return cachedResponse unmodified? Why would...

Does the iPhone / iPod touch cache data also on disk, or only in memory?

I am not sure, but I think I was reading a while ago that iPhone / iPod Touch don't cache anything to disk. They cache only in memory. So cache is not persistet when app quits. After relaunch of app it will re-fetch the data from the net. Is that true? ...

Synthesize a BOOL to set value in Objective C

I have created a BOOL attribute in my Core Data entity called "useSystem". Additionally in order for me to get/set the data I have created an object, however whenever I try to set the synthesized BOOL I get a bus error. This is my code: @property (nonatomic) const BOOL useSystem; So I'm doing [object setUseSystem:YES]; And immediat...

Parsing Data returned from Twitpic API

Hi there, I just wanted to ask you if anyone can help me parsing the returned data from the Twitpic API? I'm creating a HTTPFormRequest using the ASIHTTPRequest Wrapper for Cocoa. This all happens in an iPhone application: NSURL *url = [NSURL URLWithString:@"http://twitpic.com/api/upload"]; NSString *username = t_user; NSString *pa...

NSArray sort and isolate

I have an NSArray of names, I want to sort them alphabetically into a UITableView and separate them into sections. I have a tagged section at the top, being section 0. I want the names sorted aplhabetically to come after that. So all names beginning with A get put into section 1, B into section 2, and so on. I need to be able to someho...