iphone

Weird extra square border (possibly an extra UITextViewCell?) in grouped UITextView

Here's a grouped UITableView which has the sectionHeaderHeight set to 0, and it's background is completely transparent. I don't understand what's going on with the square "background" behind the first text label: http://screencast.com/t/mfK6Khfgs1 Here's the code I'm working with, for reference: https://gist.github.com/08c1ca8cd60d63...

iTunes connect does not allow to enter multiline description

Hello, I've just submitted my first app to the App Store and I have problem with description field in iTunes Connect - it does not allow me to enter multiline value. I've tried everything - copying-pasting from different editors, entering manually, etc. If there is one line, like "Hello world" - it saves successfully. When I've got a...

UILabel ghosting when printing NSInteger with transparent background

I have a UILabel in a UITableCell, and when I make the label's background transparent, I get these strange ghost characters (see image below), and it looks terrible. Here's my code: Left: UILabel *unreadLabel = [[UILabel alloc] initWithFrame:CGRectMake(270, 7, 25, 25)]; unreadLabel.text = [NSString stringWithFormat:@"%d", source.unread...

IPhone: is ad-hoc provisioning necessary for single developer?

So, I basically developed and tested my app using a developer provisioning profile. now i'm almost ready to submit my app to the app-store, and I was going to use the app-store provisioning profile. so I don't really need to mess with the ad-hoc one at all right? (I think it's some kind of voodoo magic for multiple developers or someth...

iOS image comparison algorithm to find the differences in two very similar but different photos

My use case is that I have two images (photos) that are almost identical but do have some differences throughout. They won't be perfectly aligned, but they will be pretty darn close to each other. As a rough estimate, I'd expect to find a half dozen or less differences scattered randomly throughout a pair of 640x480 photos. The size o...

How to add a text to a picker's top area?

I have been asked to create a small rectangle on the top of a picker component (but inside the picker area) that will hold one word. I'm not sure if this adheres to Apple HIG but anyway I would like how to implement it as an exercise. ...

Use NSUserDefaults to get to a certain position in a UIScrollView

I have an ebook style iPhone app that allows users to read a book. I have it setup so that when they leave the app, it remembers what page they were on, but not the exact spot on the page (the page can scroll quite a bit). I am using NSUserDefaults to get me back to the page, I was wondering though if anyone had any ideas about how I mi...

[NSUserDefaults standardUserDefaults] Change Doesn't Persist

I've been working with the Dropbox API as of late, and have run into an infuriating but interesting snag. The SDK saves OAuth tokens in standardUserDefaults, and if the user wants to disable the Dropbox functionality the OAuth tokens have to be removed (otherwise the SDK finds them and goes off to work). Here's the weird part: whether I...

MKAnnotation problems

I don't think I am understanding this correctly, I added the annotation to the map. I can see it, the color is red. However, I want to change it to purple and I want it as a button. So I put it as follows: // Implement viewDidLoad to do additional setup after loading the view, typically from a nib. - (void)viewDidLoad { [super viewD...

How to make sure your delegate(iphone, cocoa) is thread safe?

Hi I've seen a few examples of using delegate with multiple threads for async image loading with cocoa's URL loading system. I think the process goes like below. Thread 1 : give thread 2 an operation to perform, and a delegate which thread 2 will access upon completion. Thread 2 : upon completing the operation, calls a predefined se...

Get Itunes Notification after syncing with iPhone

My app has a feature for File Sharing through iTunes, and I want to get a notification/a method call after the process of syncing with iTunes is finished, so that I can reload my Table View with new data from iTunes. I have tried to override - (void)viewWillAppear: but it doesn't seem to run. Anybody knows how to do this? ...

Is there a built in method that is call-able as the app is about to close?

I have an iphone app, and I need to capture some data right as the app is about to close... Is it possible to associate a method call with the clicking of the iphone home button? So that I can get the most recent and current data of a particular type that I can? ...

PhoneGap Alert Notification firing multiple times

I've implemented the notification alert in an iphone project using phonegap. I've tried the direct, quick, and full examples listed on their api page: http://docs.phonegap.com/phonegap_notification_notification.md.html The problem is that when the event fires, it fires multiple times. Twice on iphone 3gs, and 3 times on iphone 3g. I'...

Convert caf file to m4r programatically on ios4

Is there a way to convert a .caf file to a .m4r (ringtone) file programatically on the iphone? I've tried a bunch of stuff and nothing seems to work. Importing into garageband and then sharing as ringtone works but I want to do it in my app. Much appreciated. ...

Calling a method when UIWebView scrolls...

I have a UIWebView that contains a lot of text content. I need to be able to get the location of the UIWebView every time it moves. I am using this code to get the point: pageYOffset = [[webView stringByEvaluatingJavaScriptFromString:@"window.pageYOffset"] intValue]; now I just need to make it so that this variables value is updated e...

converting pdf to ipad supported formatI

hi every one.... i've a problem in converting pdf to any other formats which is supported by ipad.I tried svg and epub but everything has some drawback. Can any one suggest me software which is comaptable for ipad and memory aspects? Thank you all..... ...

Iphone:More than one textfield in a table view cell

Hi ...I think is a little complete problem about textfield in tableview cell it looks like [IP xxx.xxx.xxx.xxx ] <--this is a cell in tableview So...It means at least 4 textfield in a cell But I have some questions *1.*How to add more textfield to cell.accessoryView ?** This is how I set a textfield in a cell UITextField *tex...

Erase using brush in GLPaint

As part of modifying the GLPaint, I am trying to add erase functionality where user could select an eraser button and erase the painted area just as painting. I am trying have a conditional statement within "renderLineFromPoint:(CGPoint)start toPoint:(CGPoint)end" method so that I could check whether the stroke is for painting or erasi...

How to upload a file from the front end (view) in an iphone app?

Hi, In my iphone app, It is a requirement that I enable the user to upload the database file (.sql) from the front end of the app or through iTunes and the app should display the data based on the file he/she uploaded. How should I go ahead with implementation? Please give your suggestions. Please Help. Thanks!! ...

Making a password lock for an app?

Hello there! I'm wanting to make a password unlock screen for my app, and I'm not sure how I'd go about it. I'm wanting it to look like the Apple-designed version of it, which is the passcode lock setting screen. How might I go about doing something like this, where as soon as all four digits are entered the code is immediately chec...