iphone

how to set UITableviewcell or UITableview as Empty?

Hi, i am using rss feed.first time ,table view has no rows.if i press button, there will come values.if i press again ,the table view has previous values.after recieving data it disappears and new data will come there.but when i press button ,there cannot be previous value.i want to remove it.How can i do it? any help? ...

How can I generate a device token used for Apple push notification?

how to generate device token used for apple push for a particular application for that device for a user ...

NSXMLParser Leaking

Hello, I have the following code that leaks. Instruments says that it is the rssParser object that is leaking. I "refresh" the XML feed and it runs the block and it leaks.... file.h @interface TestAppDelegate : NSObject <UIApplicationDelegate> { NSXMLParser *rssParser; } file.m NSData *data = [ NSURLConnection sendSynchrono...

iPhone + add controls dynamically

Hello, I want to add UILabel controls to my application dynamically from code (programmatically), please help me ...

Core Data backed UITableView with indexing

I am trying to implement a Core Data backed UITableView that supports indexing (eg: the characters that appear down the side, and the section headers that go with them). I have no problems at all implementing this without Core Data using: - (NSString *)tableView:(UITableView *)tableView titleForHeaderInSection:(NSInteger)section; - (NSA...

retain will allocate Memory in RAM?

the follwing will allocate memory in RAM ....? NSArray *obj = [[NSArray arrayWithObjects: @"Hai", @"iHow", nil] retain]; ...

How appstore, test applications which communicate with local servers

I am new in iphone development. I am developing an application, which is targeted to the costumers of a shopping mall. The application installed in the customers iPhone, wil communicate with a server in the mall(via wifi) and update him/her with various offers in the mall. I am in the final stages of development and planning to submit t...

MKMapView: Get clicked event on annotation pin

Hi, I am using a m MKMapView containing a couple of MKAnnotation pins. Above the map I am showing a UITable with detailed information of the MKAnnotation pins. My problem: When i select a pin , i would like to select the corresponding table cell. For this I would like to catch a event/delegate if the pin is selected. I am not talking a...

iPhone Dev: Pocket God Used Graphic Engine

I want to develop a 2d game. I have to choose from Quartz/CoreGraphics, OpenGL ES or Cocos2D. I'm interested in how the game Pocket God is realized because it fulfills perfectly my needings. Do you know which technology is used to build the game Pocket God? ...

Language Based Scanning in a UILabel

Hello, I'm developing a twitter client (YES, another one) for the RTL languages. How can a UILabel alignment be configured depending on the language of a tweet. So if language of the tweet is Arabic for example the alignment would be UITextAlignmetRight and vice versa. ...

is there any way that we can develop application in .net for iphone

can we develop application for iphone in visual studio itself are there any emulator for testing it that is compatible with visual studio ...

iphone sdk: Creating an image of the contents of the screen?

Hi guys, I'm looking for a way to write the contents of the screen to an image. Any idea how to achieve that? Does it involve using Quartz? Thanks ...

Calling cards iPhone application

Hi Everybody, I am newbie to iPhone development, I want to do a kind of POC which fulfill the following requirement. It will be basically a calling card application where user will enter a toll free number followed by pin number. After entering a pin no. it will show the available contacts from the iPhone itself, user will select a des...

Which mobile programming environment do you recommend for a startup to target?

There's a lot of mobile platforms out there at the moment; iPhone, Android, WebOS, Symbian. If creating a startup for mobile development (i.e. as a commercial endeavour, not a hobby), which mobile platform is worth focusing on? ...

(iphone) when or how to get the uiview height size after layoutSubviews

in my viewcontroller I make my instance of my view class ( in the viewdidload method) in that view class I implement the layoutsubviews method and add all kinds of subviews there now since that view class is part of a uiscrollview i want to make the scrollview contentsize as large as the view class how do i get the height of my viewcla...

Text Typing Effect in iPhone cocos2d Game

In many games, when a character is speaking (dialogue), the text has a typing effect, where it looks like you are watching the character type the text. What would be a good way to achieve this look and (simple) "animation" for an iPhone game which uses cocos2d? It's good if there's a way to do it with cocos2d, but I'm not completely op...

Can I display a driving track between two points using the map kit ?

Did I understand correctly: Opening google maps from my App demands closing that App in order to display google maps App? e.g doing so: NSString* urlString = @"http://maps.google.com/maps?saddr=London+UK&amp;daddr=Birmingham+UK"; [[UIApplication sharedApplication] openURL:[NSURL URLWithString: urlString]]; will close my App? So how ca...

no NSLog after hacking xCode out of provisioning profile and code signing

I have been following the discussion from this article,this is what I have done: Edit /Developer/Platforms/iPhoneOS.platform/Info.plist to look like this: <key>NATIVE_ARCH</key> <string>armv6</string> <key>PLIST_FILE_OUTPUT_FORMAT</key> <string>binary</string> <key>PROVISIONING_PROFILE_ALLOWED</key> <string>NO</string> <key>PROVISION...

Does iPhone OS distinguish between foreground and background threads?

Does iPhone OS distinguish between foreground and background threads? ...

UIView's initWithFrame not working?

Hi, i set my view controller to the particular view through Interfacebuilder. but initWithFrame is not calling , but drawRect is being called?when i put break point? ...