iphone

iphone code sining error

i tried to build a iphone application. create certificate every thing. then i got a error that is Checking Dependencies Code Sign error: a valid provisioning profile matching the application's Identifier 'com.max.iphoneTestingCode' could not be found max is our company name.. 1) where is we mention bundle identifer.? 2) how to so...

Iphone file I/O operation and file structure

I want to write a iphone SDK program to download and upload files from server. Server application is written in php. But I m confusing following points in client application. 1) How can I download the file from server 2) How can I store it in iphone (accessing iphone file system) 3) How can I display all file in a directory to the users...

It's working only on simulator, but isn't working on Device

Hi everybody, I'm working on sample project for learning core animation. I have problem with my device, I wrote simple project and it's conatins just one viewcontroller and this viewcontroller's view contains just two layer, each layer have .png image backgrounds (actually 700 x 700 px) and these images contains semi transparent content...

hot do i make a comparison of integers and values of text box in Objective C.

Hi all, i'm new to iphone programming and i encountered/noticed some problems while i was coding. which was after i typed a statement like if (label.text > label2.text) { do something...} however, after typing my application can be compiled and run however when i try to validate it by comparing the values, my specified actions ...

How do I convert NSDictionary to NSData as a plist (without saving the dictionary)

Does anyone know how to convert a NSDictionary object into an NSData object as a plist without saving the dictionary first? I would like my iphone app to send an email with a plist containing my dictionary attached. I am currently using skpsmtpmessage, http://code.google.com/p/skpsmtpmessage/, to send email. Thanks in advance ...

Comparison mobile devices as dev. platforms iPhone, Blackberry Windows Mobile

I was trying to compare the three above mentioned platforms and what considerations one needs to think about when programming in order to create some kind of code base that could run on all three. This is what I have collected for the iPhone - it would be great if somebody else could write something similar for the other two. Only one...

particular tabbar item hide when app loads in Tab bar controller?

HI, i have added the following in Appdelegate.m file to hide particular tab bar item("Hai") in tab bar controller(created by IB).but it did not work - (void)tabBarController:(UITabBarController *)tabBarController didSelectViewController:(UIViewController *)viewController { if ([viewController.tabBarItem.title isEqualToString...

iphone application data transfer problem

I am trying to reach the application data from Xcode organizer. There is supposed to be a disclosure triangle next to my application name but it is not there. What could be wrong? (Application is writing the data to "NSDocumentDirectory" with a custom binary format) ...

change webView Font size with Setting Bundle ! [iPhone SDK]

hi .. i want change my UIWebView with Setting bundle . what is the property for webview font ? i know my codes is wrong ! if([defaults boolForKey:@"large_font"]) { myWeb.font = [ UIFont fontWithName:myGhazal size:32.0f]; } else { myWeb.font = [ UIFont fontWithName:myGhazal size:18.0f]; } ...

how to set UITableViewCell background tranparent?

how to set UITableViewCell background tranparent? I am trying cell.backgroundColor = [UIColor clearColor]; But that is giving black color. Thanks & Regards. ...

How do I declare a class property as an enum type

I want to declare a custom enum such as: enum menuItemType { LinkInternal = 0, LinkExternal = 1, Image = 2, Movie = 3, MapQuery = 4 } As a type for my object: @interface MenuItem : NSObject { NSMutableString *menuId; NSMutableString *title; enum menuItemType *menuType; NSMutableArray *subMenuIt...

zoomToRect does nothing if your UIScrollView is already at that zoomlevel

I think I have found a bug in UIScrollView, but I want to check if other people are observing the same thing and if it is expected behaviour. I've got a UIScrollView and am trying to set what it is looking at using zoomToRect. That works fine. If I then drag the view so it's looking elsewhere and then trigger the zoomToRect with the sam...

Disable iPhone vibrate with Setting Bundle [iPhone SDK]

hi .. i build an app, now i want disable my shaking with setting bundle when iphone is shaking and vibrating AudioServicesPlaySystemSound(kSystemSoundID_Vibrate); Setting Bundle : Title: Vibrate //// Key : dis_vib//// Type : PSToggleSwitchSpecifier ...

question regarding global variable

Hi, I need that I can use 1 object of NSString to use in all other files to access 1 variable in all filees ...

Very Intermittent Orientation on Device & Simulator

I've noticed that I'm getting very intermittent orientation on my device & the simulator. I have a modal view controller that I present, and that is the only thing in my app which supports rotation. If I launch the app in portrait without moving the device, open the modal VC and then rotate the device, it usually works. However someti...

Add backslash to String in Objective-c

I have a problem identical to this problem here. I even want to encode the same infromation as him (it's a date/time for asp.net)... When ever I try to add a backslash i get two backslashes since I used \. Everyone in the thread above has claimed that this is a problem with NSLog and that NSString does tread \\ as a \. I have checked ...

Image drawing on PDF fails to draw image with transformation and outputs wrong.

Hello guys, I've a problem with drawing images on PDF. I do apply scaling, rotation, move, etc. to an image and draws that image on the PDF. But drawing is not outputting correctly. When I do rotate image, it just scales and doesn't rotate. Here, I explain in more detail: I place an image on UIWebView to make fake effect of image exact...

NSOperation for drawing UI while parsing data?

Hi, Hope you guys can help me :) In the main thread, I create a NSOperation and add it to a queue. What that operation do is connect to a data server with NSURLConnection, save the receivedData and parse it. Operation.m - (void)start { NSLog(@"opeartion for <%@> started.", [cmd description]); [self willChangeValueForKey:@"i...

Need access to the cell in the tableView:heightForRowAtIndexPath:

I need to access my cell in the table from tableView:heightForRowAtIndexPath: since I want to use the data I have ion the custome cell for the height calculations. The only way I have found to get my cells is to call tableView:cellForRowAtIndexPath: The problem with that is that calling tableView:cellForRowAtIndexPath: is actually creat...

Facebook Connect compile error

Hi All, Am getting 1 warning and 1 error on compiling my iPhone app with FBConnect in there. The error is: literal-pointer@__OBJC@__cls_refs@FBSession Any thoughts on what the problem is and how to track it down? Regards Dave ...