iphone

Help filling out "info.plist" file

I'm ready to submit my first app to the App Store, however I'm having trouble filling out some of the "Info.plist" fields. I don't want my app to be rejected because I did this wrong. These are the fields I'm having trouble with: Executable file, Bundle identifier, Bundle name and Bundle creator OS Typecode Can you put anything on t...

Releasing object on different pointer

For example: MyClass *obj1 = [[MyClass alloc] init]; MyClass *obj2 = [obj1 retain]; and release it with [obj2 release]; [obj2 release]; Is it legal to do this? Will the object will be released properly? ...

How to manage acc in iOS app?

I have a News Webserver where registered user can get RSS News. I want to build an iOS application use to get News from my webserver but i don't know how to manage acc in iOS application. How can i save logined user on iDevice ( store on .plis file, Core Data ....???, store real usr/pass or store encode user/pass), how can i verify store...

Where to store data in iphone?

Hi, I'm doing an app which needs to store large data. Just like find out what is best way to do it. Where should i store it? in document folder? or in caches folder? or there a better way of storing large data? Thanks in advance. ...

iphone app blank in simulator: moved from 3.1.3 to 4.1

I have a 3.1 xcode project that has been running my app just fine under the 3.1.3 version of the OS. I've been testing this app on my iphone 3G ( not running IOS 4 ). I just copied over the XCode project and files, downloaded the latest XCode 3.2.4 with the 4.1 SDK. When I run my application via the simulator it just comes up blank in...

Scroll view and table view performance when loading images from disk

I'm trying to improve the performance of my image-intensive iPhone app by using a disk-based image cache instead of going over the network. I've modeled my image cache after SDImageCache (http://github.com/rs/SDWebImage/blob/master/SDImageCache.m), and is pretty much the same but without asynchronous cache in/out operations. I have some...

Will Apple reject my app for using setStatusBarOrientation?

ViewController1 uses portrait orientation. ViewController2 uses landscape orientation. If I use: [[UIApplication sharedApplication] setStatusBarOrientation: UIInterfaceOrientationPortrait]; Will my app get rejected? If I can't use this call, what is my other option? Simply rotating the images won't be sufficient since I need to use ac...

Why can't files in my iPhone NSBundle folder be deleted?

I'm having trouble figuring out why files in my iPhone app seem to persist, even when I've deleted them. Here's the code that's giving me trouble: NSFileManager *fileManager = [NSFileManager defaultManager]; NSString *bundlePath = [[NSBundle mainBundle] bundlePath]; NSString *folderPath = [bundlePath stringByAppendingPathComponent:@"fi...

How should I go about this?

I have a MySQL Database of more or less 100 teachers, their names, and their phone numbers, stored in tables based upon their department at the school. I'm creating an iPhone app, and I've found that UITableViews and all the work that comes with it is just too time consuming and too confusing. Instead, I've been trying to create a web pa...

status bar and Navigation bar problem after dismissed modal view

the apps launched the mailcomposer modal view (MFMailComposeViewController) when the Contact Us button is pressed. but once the modal view is loaded, the status bar is hidden automatically. I setStatusBarHidden Status to NO after modal view controller is dismissed. [self dismissModalViewControllerAnimated:YES]; [[UIApplication...

Port an iPhone app to Mac OS X

I have an app running on the iPhone that I would like to convert into a runnable application on Mac OS X. It uses a single UIViewController, which I have heard needs to be changed into an NSViewController. Basically what I am wondering is what needs to be changed about an iPhone application to make it work like a Mac application instea...

About getting a new NSManagedObject object.

I watch the Core Data guides, and there are two way to obtain a new NSManagedObject instances. - initWithEntity:insertIntoManagedObjectContext: of NSManagedObject class + insertnewObjectForEntityForName:inManagedObjectContext: of NSEntityDescription class Are there any difference between both methods? Or, they just mean the same thin...

How Do I Create A Page Scroller Like In Apple's iBooks?

You guys get what I mean. I have no idea how to do this. There are no tutorials anywhere and so far I've spent about 4 hours on this to no avail. Can anyone point me to anything useful or give me a quick run down on how I would achieve this? Cheers. ...

Programming on the iPhone on windows/linux?

I really, really want to program this application I have onto my iPhone/iPod Touch but I don't have a Mac. I have heard of DragonFireSDK but don't have enough money for the program(does anyone have a beta/trial version of the program?). Please Help. I have ubuntu linux & windows 7 installed. ...

Record AVAudioPlayer output using AVAudioRecorder

Hi All In my application, I have list of Buttons when i click on one button corresponding music will be played. I want to record the sounds coming while playing the audio using avaudioplayer. But when i start recording while playing sounds nothing is recorded, Is it possible to record the sounds from avaudioplayer. Thank You. ...

how can i reload (or) refresh the uiview?

HI, I'm very new to iphone development.I'm doing one application in that app having more than one uiview.one uiview having uislider and uilabel.uislider is used to show the song timings and uilabel is used to shows the song count.while the timer shows(-0.00)that is the slider reach the end next song is correctly played but,the uilabel n...

Fluctuation of Yaw in Core Motion

From the code below, I am having a problem with Core Motion that I could not get a reliable yaw data. To reproduce the problem on iPhone 4, you can put the phone on a table, run the code and rotate the phone about the vertical axis between 2 points. On my phone, the yaw value of the points tends to move away from the initial values. For ...

How to call from Ibaction?

hello..everyone.... I am working on navigation based apps...i have shown first screen...in first there is a label,image,button and tab bar items...when we press a button ..it shows new screen..please tell me how to push a new screen ...

Find indices of duplicates in a NSArray

i have an array like [chapter,indent,left,indent,nonindent,chapter,chapter,indent,indent,left]; i need to find indexes of duplicates and also non duplicate elements . how to do this...........give some sample code or logic...... thanks in advance iam using objective c..... NSArray *myWords = [string componentsSeparatedByString:@...

How to transfer pdf file from the mail box to our iphone app?

Hi, I want to transfer a PDF received in my inbox to my application. Once I received an email with a PDF attachment and on clicking the attachment it is asking for "view it" and shows the application which supports opening PDF, after clicking the app pdf is opened in that app.In my case I have created an app which will open a pdf file. ...