iphone

How do I remove the distribution .plist from my app build settings?

I developed an app on a computer I no longer have and forgot to export my signing key. I am currently running into issues when I try and update the app. I submit the binary that has been signed with the new dist cert and key, and in ITC it says application loaded, but then when it refreshes, it goes red and just says "invalid binary", wi...

stringWithContentsOfFile works, but requestWithURL doesn't

For some reason, the first method doesn't display anything, while the second does: //Common NSString *path=[[NSBundle mainBundle] pathForResource:@"about" ofType:@"html"]; //Method1 [webView loadRequest:[NSURLRequest requestWithURL: [NSURL fileURLWithPath: path isDirectory: NO]]]; //Method 2 NSString *HTML=[NSString stringWithContentsOf...

Find if cookie has a value for variable

In a previous answer I found on stackoverflow (can't find now) someone suggested using NSRange rangeOfString to see if a particular variable had data in it from a cookie: NSRange range = [[[NSHTTPCookie requestHeaderFieldsWithCookies:[[NSHTTPCookieStorage sharedHTTPCookieStorage] cookiesForURL:[NSURL URLWithString:cookie]]] objectForKe...

Images on the UISEGMENTController?

can anyone help me to set the images on UISEGMENTController. ...

How to create a TableView without a deletion control?

When a table view goes into editing mode, it shows the delete controls on the left, and also reordering controls on the right. I have no need for deleting the rows, hence I return UITableViewCellEditingStyleNone for -(UITableViewCellEditingStyle)tableView:(UITableView *)tableView editingStyleForRowAtIndexPath:(NSIndexPath *)indexPath. ...

How to post a text in twitter as a hyperlink in iphone?

I want to post a text in a twitter as a hyperlink.I am able to post it as a simple text message.I have used Twitter+OAuth.i have used [_engine sendUpdate:@"My twitter update"]; method to post my content.How can post is as a hyperlink so clicking on text opens a link.Any ideas? Thanks. ...

How we can check that our IP is blocked by apple from using APNS service

My apns was fine till yesterday. But today onwards am getting this error. .Warning: stream_socket_client() [function.stream-socket-client]: unable to connect to ssl://gateway.push.apple.com:2195 (Connection timed out) I didn't change anything. I am using an adhoc distribution profile.I used apns service too many times for testin...

can we send messages to user even when the application is closed in iphone sdk ?

i m making an application where data is accesed from website and displayed with an application.i have made an action which will tell the user that new data has arrived.this will work properly if the application is open .but if the application is closed than ,is there any way to tell the user that new data has arrived ,,so that he can ope...

cannot go to detail view from table view on iphone

i have table view and when user click on any row then he should go to next view but in my case its not working, what i am doing wrong here?? - (void)tableView:(UITableView *)tableView didSelectRowAtIndexPath:(NSIndexPath *)indexPath { // Navigation logic -- create and push a new view controller NSLog(@" push");// is work...

Is there any way to make a call on iphone without using built-in dial application?

Hi, I have to make a calling application. I found a method to make a call on iPhone which is as follows: [[UIApplication sharedApplication] openURL:[NSURL RLWithString:@"tel://8005551212"]]; My question is, this method calls iPhone built-in application. I want to make direct call without using this built-in application. Are there other ...

Touch events in separate thread?

Hello everyone! I have a little problem. My OpenGL application is heavyweight and touch events comes too late. I read question about it, but I have my own. How can I separate main(drawing) cycle into one thread and touch events to another one? ...

*** Terminating app due to uncaught exception 'NSRangeException', reason: '*** -[NSMutableArray objectAtIndex:]: index 1 beyond bounds [0 .. 0]'

Hi, what is meaning * Terminating app due to uncaught exception 'NSRangeException', reason: '* -[NSMutableArray objectAtIndex:]: index 1 beyond bounds [0 .. 0]' so that i can solve my problem thanks ...

Why I'm getting "Killed" responce while running a command in "usr/bin/" on my iPhone?

I've two iPhones for development and I made an executable binary (code signed by ldid as "ldid -S myBin") and placed it in the "usr/bin/" folder on both the iPhones. When I try to run that binary from "Mobile Terminal" (as root#myBi) I always get the "Killed" response. But on the second iPhone it runs without having any trouble. Can anyo...

using JSON how to pass data from table view to section view on iphone

i have all that data with me in tableview but when i dont know how to transfer these values on section view when user press any cell this is how i am getting values [[jsonArray objectAtIndex:indexPath.row] objectForKey:@"number"]; now how to transfer these values to section - (UITableViewCell *)tableView:(UITableView *)tableView cel...

uiswitch and UItableview

Hi I was just going through the controls called tableview and uiswitch i added the uiswitch control inside the table view cell with the help of the code given below cell.accessoryView = objswitch; Now what i wanted is that my tableviewcell text must change to on or off as per the value change event of the switch so i wrote a function ...

Localising xib's (iPhone) workflow

I have figured out how to loclize, but it seems yo end up with a lot of paralell xib's. Is there a good way to manage changes in xib's that as been localized, or do I have to be very strict about not localizing before the xib's are fixed? ...

iPhone Lite to Paid App

Hi All, I have a lite iPhone app that has a link for the Paid app on the app Store. On the following question it was mentioned that the app was rejected because of the same behavior and in order to apply this I have to use In app purchase instead. I have seen Lite and Paid apps on the store. I wanted to know how I can handle the link b...

UIToolbar disappears after dismissing Modal View Controller

I'm aware some of you may not be familiar with Monotouch, but this could certainly be a general iOS issue rather than a specific Monotouch issue. I'm recreating an app with similar functionality to the default mail app: This is a simple recreation of our app. It's a UIView which contains a UITableView and a UIToolbar. It's loaded from...

iPhone, sqlite3, how do detect a null date, getting error when assigning to a NSString ?

This is my code NSString *enddate = [[NSString alloc] initWithUTF8String:(char *)sqlite3_column_text(statement, 3)]; I need to have null dates, but when a null is passed to this line, I get an error * Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '* -[NSPlaceholderString initWithUTF8S...

[IPhone dev] How can i call the same ViewController from different TabBar items?

Hello, i've developed a ViewController that shows different data according to input parameter; i would like to use a tabBar interface and call the same ViewController from different tabs by passing them different parameters. Can i do this? I actually get errors if i specify the ViewController's NIB in tabBar item. Can you help me please...