iphone

How to access any printer present in wifi network in an iPhone application ?

Hi all, I want to develop an iPhone application where i want to access any printer present in my wifi network. But according to Apple :" Printing is not supported because there is no direct support for connecting printers or other print-related hardware to an iPhone or iPod touch". But there are many application in appstore which is ...

Loading a web page in iphone and check history

Pseudo code pageUrl = "http://www.google.com" if(pageUrl == never Downloaded) Download pageUrl else { Display Saved Version Mean while download pageUrl When done display new version } How can I do something like this in objective C for a UIWebview? Also what's the best way to save web pages for this scenario? PList, SQLit...

CoreData: Releasing ManagedObject

I'm using CoreData (with SQLite as the store) in an iOS 4 iPhone application to store data that i initially retrieve from an xml file. My data model contains more than 15 entities and I am concerned about memory consumption since I saw CoreData creating all the NSManagedObject in memory to represent the object graph of my data model. I p...

static object memory release

Hi, My Questing is -(ABC*)createInstance { Static ABC *obj = [[alloc ABC] init]; if(obj == nil) { obj = [[alloc ABC] init]; } return obj } can we write in objective c [[ABC createInstance] release] Thanks in advance.... ...

Error with objective-c macro

Hi guys, Im new to writing macros in Xcode and am having a problem writing my own NSLog replacement. I've been using a few examples but want to tweak them slightly, so they act more like Log4. Im trying to write a 2nd macro (or ideally just a delegate of the first) which takes a log level variable as well as the string and arguments fo...

Which is better comparing iPhone and Android?

Hi all, I am iPhone application developer, many people told me to join with the android application development, as it's future is far better comparing to iphone. As I am iPhone developer, I prefers to be stay with iPhone , but in reality is it true that android is being far better comparing to iPhone ?? I can't say as I've never don...

XCode warning when using deprecated setStatusBarHidden method

I found this on StackOverflow regarding the problem, but was not able to solve my problem. http://stackoverflow.com/questions/3028255/about-setstatusbarhidden if([[UIApplication sharedApplication] respondsToSelector:@selector(setStatusBarHidden: withAnimation:)]) [[UIApplication sharedApplication] setStatusBarHidden:NO withAnimatio...

Iphone Spell check

Hey Guys Is it possible to get access to a word library in the Iphone. I need to be able to check to see if user input matches a real word. Any ideas? ...

Notifications for WIFI, Bluetooth, Camera, SMS, CAll

Hi all, I like to implement a application which runs in the background and should check wheather the wifi, camera, bluetooth settings are changed (i.e. wheather it is turned on or off), and incoming calls, outgoing calls, outgoing sms, mms etc. Is there any way to get notifications for the above change in settings such that my applicati...

applicationWillTerminate and background: terribly confused...

Hi I understand that applicationWillTerminate is no longer called in iOS4, practically. But I have this situation: my audiobook goes in background mode and keeps playing audio; until version 3.x of SDK I saved the point where one listened to the MP3 file, in applicationWillTerminate; now I was told to keep this saving in applicationWi...

How to figure out the app ID programmatically at runtime?

Is there a way to do that? I would hate it to hard-code the app ID somewhere... ...

"show 20 more messages" button in uitableview

Hi friends, I am newbie to iphone programming. I doing an mail like app in that i have to show inbox information in table view and at the final of dragging i should need "show 20 more messages" button. is there possibility of showing that? if please can you provide with me a codes. Regards, sathish ...

Advantages of QuickConnect over Phonegap?

I'm evaluating different cross plattform mobile frameworks. I like Phonegap and think I understood how it works, but am now looking at QuickConnect and have a much harder time to figure it out, especially how it compares to Phonegap. Can anybody help me to define the advantages or differences of QuickConnect in comparison to Phonegap? ...

Problem Starting and Stopping AVAudioPlayer

I have a class in which I have an audio player. In class B, I have a switch, from where I want to take control of play and stop of background music. I am not able to stop and play music through switch. this is my audio player at viewdidload of class A NSURL *url = [NSURL fileURLWithPath:[NSString stringWithFormat:@"%@/bgmusic.wav", [...

The animation is working in simulator but its crashing on device

Hi...im new to Animation Programming.... My app is crashing in device but its working fine in the simulator... if i keep on dragging on device for few minutes..its crashing.... Can anybody help me please... The following is my code... // HomeViewController.m #import "HomeViewController.h" @implementation HomeViewController @synthesi...

Convert a UIView origin point to its Window coordinate system

Hi, I want to get the origin of scrollView in the window coordinate system. For Example, presently, scollView origin is (0,51). But in window coordinate system it should be 51 + 44(navigation bar height)+20(status bar height) = 115. Means in window coordinate system the scrollView.frame.origin should be (0,115). I tried with convertPoint...

UISearchBar keyboard doesn't slide out of view when a cell is selected in iOS 4.

I have a tableView with a UISearchBar. Before upgrading to iOS 4, when a user selected a cell and the new viewController was pushed, the keyboard slid out of view to the left with the table. Now, it just stays put on the screen on top of the new view. If I call [mySearchBar resignFirstResponder]; I can get rid of the keyboard, but the a...

Setting application device compatibility iPhone

Hello, I'm building an app for the iPhone and the app is only for iPod touch and iPhone. Where do I put this requirements? Because, when I tried to upload it to the apple store I can't find a place to indicate this and it assumes is also compatible with the iPad. Thanks in advanced for your help. ...

How to obtain a localized string representation of the weekdays like monday, tuesday, etc.?

How to obtain a localized string representation of the weekdays like monday, tuesday, etc.? Sure I could localize these myself but I bet that I can suck them out from a calendar class or something similar? ...

Symbol not found: _UIKeyboardFrameEndUserInfoKey on iPhone 3.1.3

I rebuilt my project from scratch as I move towards a universal app. I also wanted a fresh project without a lot of history. Anyway, for some reason my new project only seems to support devices 3.2 and above. I am compiling with 4.0 SDK and device target 3.0, but something must be wrong somewhere because on my 3.1.3 device it won't in...