iphone

UITableView calling UITableCell causing undesired output

Hi, I'm trying to toggle the color of UITableCell when it is clicked. Code is below - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { RowCell *cell = (RowCell*) [tableView cellForRowAtIndexPath:indexPath]; [cell toggle]; } The toggle actually works, except that it seems like it hili...

Adjusting navigationItem.titleView's frame?

I noticed that the titleView's position depends on the rightbarbutton title. How can I set the frame of the titleView to be in the center instead? I've tried setting titleView.frame, but to no avail. Here's the code: UIButton *titleLabel = [UIButton buttonWithType:UIButtonTypeCustom]; [titleLabel setTitle:@"Right Eye" forState:UICont...

UISlider with certain possible values

I am willing to do this widget: Just A-B-C can be chosen. Any idea if someone already did something similar? If not, how would you do it? ...

How to load test my Push Notification traffic

Is there some way to load-test my iPhone/iPad PNS sending routines in the sandbox? I'd like to see how fast my processes can send messages so I can figure out how to scale. I need to know how long it's going to take to send 20,000 notifications, for instance. Anyone have suggestions? Thanks. ...

Core Data Lightweight Migration - Cant Merge Models

Hi Guys, I need to add some attributes to my core data model and I am having a terrible time getting lightweight migration to work! I keep getting the error "Cant merge models with two different entities named blah". Here's what I've done ... Added this code to my app delegate. (NSPersistentStoreCoordinator*)persistentStoreCoordin...

xcode 3.2.4 (sdk 4.1) unable to install to device

Hi there, I recently installed XCode 3.2.4 to my machine. This comes with iOS SDK 4.1. Annoyingly I can no longer install my app to any iPhone. The option to tick "Device" in the drop down for where to install to is present, but when I click it, it doesn't become ticked. Strangely I can only run my app on the simulator, despite the opti...

Second UIScrollView responding when using a UIScrollView

Hi all, This is more of a check as I believe this is right but its a lot of work if I'm wrong. I want to basically achieve fixed positioning with a scrollView. I want to have a list along the top that is always visible, scrolls horizontal only and then a scrollview beneath that to move around the information which scrolls both vertical...

Selecting a row in a UIPickerView dynamically

Hello everyone ^.^, I have an iPhone app that use UIPickerView and 3 buttons. This picker has one component with 100 rows (0, 1, 2, ..., 98, 99). I'd like to implement the code so that, when I press on the buttons button1: will make the picker select row 21th (which has value 20) button2: will make the picker select row 41th (which ...

How can i resubmit CS5 ipa on AppStore?

Now that Apple has unbanned the use of 3rd party dev tools, how can I resubmit my ipa file on the AppStore? ...

Automatically download sales reports from iTunes Connect

I had a nice and hacky Perl script to automatically scrape and download sales report files from iTunes Connect. As of today, Apple overhauled the sales report site. It looks a lot nicer, but it uses a lot of JavaScript and simple scraping isn't going to work any more. So, does anybody know of a way to scrape this new site effectively?...

NSNumberFormatter question

I'm trying to save a float like so [NSNumber numberWithFloat:[dosage floatValue]]; and read the value like so: dosage = [NSString stringWithFormat:@"%1.0f", [prop.dosage floatValue]]; The Problem is that numbers like 0.11 end up being 0 I've read that I can use NSNumberFormatter, but the docs are not very clear on how to set it fo...

Not able to open project in xcode

Hi all In my mac pro i have installed Xcode 4.1, This is the first time i installed xcode in my system. The installation was successful but in my old project the files have not changed to xcode version. They all look like text files. Can any one help me. ...

How to disable "delete" when the table section is 0 on iPhone?

I have a UITableView with two sections, and I added a edit button. If I press the edit button, I can delete the item on the UITableView, but I wanna to check the if the section is 0, the delete button will not display, how can I handle it for that purpose? Thank you. ...

What is Adobe Air Packager for iphone

Hello all I just read this annoucement about Apple lifting restrictions on its third-party developer guidelines with direct implications for Adobe’s Packager for iPhone. http://blogs.adobe.com/conversations/2010/09/great-news-for-developers.html I just want to know what kind of applications can be built using this packager? Can I bui...

Scrollable mulitple lists in iPhone app

I'm new to iphone app development. I want to create multiple lists in a page, which are independently scrollable. i.e. some part of each list will be visible in d screen, then scroll down each to reveal d rest. I would like to hide the contents of other lists when d title of one list is clicked (show d selected list full,with just d titl...

Change the colour of Keyboard in iphone

Hi is there any way of changing the colour of keyboard or we have to get some custom keyboard for it , any suggetsions .. thanks in advance ...

Mask the image but getting Negative image of actuall image.

Hi guys I am trying to mask the image with another image but i did not success. I am using the following code. -(UIImage*) maskImage:(UIImage *)image withMask:(UIImage *)maskImage { CGImageRef maskRef = maskImage.CGImage; CGImageRef mask = CGImageMaskCreate(CGImageGetWidth(maskRef), CGImageGetHeight(maskRef), CG...

IPhone: how to draw a simple colored rectangle with interface builder?

I'd like to draw two different colored rectangles (yes I need two.. it's a long story) to use as background. Like a simple two tone background color. How would I do this? The only thing I saw that comes close is defining a 'view' with a background color. So maybe I could do two views or something in the background but this seems kind of ...

Who can build a libssh2.a for iPhone

Who can build a libssh2.a for iPhone it's something about cross compilation I totally Don't know how to Set it rightly What I want to use is sftp client on iPhone anybody did this ? Can you share it? ...

addAnnotations in MapKit causing iPhone app to crash

So my app uses MapKit, and many of the people who have downloaded my app are complaining that it crashes right after the map loads. I can assume that its crashing once the annotations are being displayed on the map. I have no history of crashes in my itunes connect crash logs (should i??), but they posted in a review that they're using...