iphone

PhotoViewController + MockPhotoSource (display local photos)

Hi, If someone have ever use the PhotoViewController and so the MockPhotoSource in the three20 open source project can he told me how can I change the code to display photo store locally and not in the internet. This is an example of the code to display one photo: - (void)viewDidLoad { self.photoSource = [[MockPhotoSource alloc] ...

How to parse a file for iphone? Should I use NSScanner?

Hi, So I am new to iphone development, but am trying to learn how to take a file that is CSV and read it and save it using Core Data (I think that is the best way?) so that I can display it in a tableview on the iphone. Below is an example of the type of csv file I am working with; 13,1,1,History,,,,,,1 ,263,1,Smith,Bob,Freshman ,317,...

UITableView Problems with cellForRowAtIndexPath

I am trying to fill a uitableview with multiple sections. This is my code: static NSString *CellIdentifier = @"Cell"; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:CellIdentifier]; if (cell == nil) { cell = [[[UITableViewCell alloc] initWithStyle:UITableViewCellStyleDefault reuseIdentifier:CellIdentifier] au...

Keeping XML files in iPhone apps safe from jailbreak?

As you may know, jailbreaking allows you to access the directories of apps that iPhone developers make. For example, there are many websites that show people with jailbreaks the file path of some of the XML files in fieldrunners app. After changing these you can change nearly anything and make each paid weapon free. I was thinking ab...

How to programmatically use UIButton in iPhone Development.

hi dear friends, I encountered a weird problem. when I try to add a UIButton in my customized ui view. the button title cannot display. only draw the outside roundrect. regardless invoke setTitle:forState: or button.backgroundColor=[UIColor redColor]; it also doesn't work. but for backgroundColor, at the rectangle angle corner, t...

Take a random Number from one ViewController and use it in a second ViewController - Update

Hi, I have two ViewControllers: The RedButtonViewController and the TweetViewController. The RedButtonViewController generates random numbers in Textlabels and I want to use the number or the label with the TweetViewController. How can I make this? Thanks for your help! My TweetViewController will be opened with this code in the RedBut...

The generic way for iPhone game development

Dear friends, when we develop an iPhone game, How many views you'd like to use? I have experienced on J2ME game development, Generally, it always using one Canvas to rendering everything for game elements. (The Canvas likes View concept of UIKit in my opinion). So, cause I am new to iPhone game development, I just want to know is it ok i...

GWT document Upload

Hello, I am doing an iPhone application and there is a part where the user can upload documents like pdf to the server from iPhone. Though i can find lots of code to send files to the server, i am not able to find any control to browse files. As far as i know, an application can access only files inside it's sandbox. Is it possible ...

What audio API would I use, on the iPhone, to record audio and then in return modify it while playing?

I want to be able to record audio. then modify it like add effects, slow down and it speed up while playing it. ...

Use multiple language calendar in Iphone Application

Hi All, I am new to Iphone development. I want to make an Iphone application with a calendar in two languages i.e. english and amharic. Each date of the calendar should be clickable and user can add any event on any date. The date which is having any event should be displayed with a different background color. There should be a backgrou...

NSOperation and NSNotificationCenter on the main thread

I have an NSOperation. When it is finished I fire a NSNotificationCenter to let the program know that the NSoperation is finished and to update the gui. To my understanding listeners to the NSNotification will not run on the main thread because the NSOperation is not on the main thread. How can I make it so that the listeners run on...

a question related to Apple Push Notification Service iphone developement

Hi I have 1 basic question, server sends me badge number = 5 first time server sends me badgenumber = 3 second time when my application is not running but i seen that second time my bade number 3 is replaced by 5 but in my application i need that second time my badge number will be seen 3 + 5 = 8 is there any way to do it???? ...

What is NSString in struct?

I've defined a struct and want to assign one of its values to a NSMutableDictionary. When I try, I get a EXC_BAD_ACCESS. Here is the code: //in .h file typedef struct { NSString *valueOne; NSString *valueTwo; } myStruct; myStruct aStruct; //in .m file - (void)viewDidLoad { [super viewDidLoad]; aStruct.valueOne = @"firstValue"; } /...

Implementing sms push in iphone

Is it possible to invoke an application on reception of an sms. I have created a sample application and it need to be launched when the iphone recieves a particular message. Is it possible to implement this in iphone. If possible, which way shall i do that... pls help... ...

refresh TTThumbsViewController on a buttonClick in Three20

Hello, I have this view having Thumbnails and certain set of buttons. I am using TTThumbsViewController to render this view and MockDataSource (provided in TTCatalog) to store images. my datasource is dynamic and changes everytime in some period of time. Now what I want to do is refresh(reload) the thumbnails after clicking a button...

NSURLConnection and Basic HTTP Authentication

I need to invoke an initial GET HTTP request with Basic Authentication. This would be the first time the request is sent to the server and I already have the username & password so there's no need for a challenge from the server for authorization. First question: 1) Does NSUrlConnection have to be set as synchronous to do Basic Auth? Ac...

Recorded Audio Files

hi i have a application in which i record the user voice and save it into documents folder. now i want to get it back in to the photo library of the iphone or i want to download it so that user can share it with anybody.i am sending mail of the recorded file but if the file size is greated than 8 mb its not allo me to send the email wi...

iPhone SDK initializing NSString warning messag

I think this is a quick question and answer - I'm reading a dictionary entry for a detail view which is pushed from a tableview row. but in the detail view, when I'm picking up the data to display (as an HTML page) I'm getting the message: incompatible Objective-C types initializing 'struct NSDictionary *'. expected 'struct NSString *' C...

trap backspace key

hii i am new to iPhone world i am trying to trap the backspace key like if(string isEqualto:@"\b") but it doesn't work , the ascii code for backspace is 8 .. IS there any way to get the ascii code for the backscape key.... if possible plz tell me the code how to get the ascii value of character. ...

Custom iPhone "More" TabBarItem

Does anybody know how to rename the "More" tabBarItem? In other words: How to access to this object? ...