iphone

See a white band at the bottom of screen while adding view to window programatically in iphone?

Hello all, When I developed a view based project in XCode, My view works fine. But when I use a window based project and create a view on my own and try adding it as a subview to window, it gives me a white band at the bottom. I never faced this issue before but facing it first time. Anyone having a solution? Tnx in advance. ...

iPhone - dealloc - Release vs. nil

Wondering if someone with experience could possibly explain this a bit more. I have seen examples of... [view release]; view = nil; ....inside the (void) dealloc. What is the difference and is one better then the other? What is the best way? When doing retainCount testing I have personally seen nil drop a count from 3 to 0 for me...

vtable for .. referenced from compile error xcode

I was getting the following error compiling and iPhone project. Anybody know how I may fix it? "vtable for oned::MultiFormatUPCEANReader", referenced from: __ZTVN4oned23MultiFormatUPCEANReaderE$non_lazy_ptr in MultiFormatUPCEANReader.o ld: symbol(s) not found collect2: ld returned 1 exit status ...

iPhone - Instruments ObjectAlloc GeneralBlock

Okay, I have been trying to days to lower the Net Bytes on GeneralBlock 16, I understand that a GeneralBlock is created by the iPhone's OS when creating its own object. Is it possible to lower this alloced memory? I have read in some places that GeneralBlock is something that you shouldn't worry about. True? ...

iPhone-SDK:Questions about iPhone RingTone and Video access:

Hi, I have two questions here. 1.) Is it possible to access ring tones/put our custom ring tones programmatically using our client app in iPhone? Does the latest SDK support? 2.) A client iPhone app - Is it possible to download a Video file from server and put into iPhone device any of the folder (or) Video folder? Please reply if you...

C++ multiple inheritance and Objective-C. Is this is a bug in GCC?

I encountered following weird behavior yesterday. It seems a compiler bug to me or is there a something that I've missed? I was wrapping Facebook Connect for iPhone's Objective-C classes with Objective-C to C++ adaptor classes, so that they could be used from our own OpenGL/C++ code more conveniently. The following code reveals the prob...

Drawing in Google map

Hi, I am developing an application for iPhone,which allows the user to draw a line or select an area on the map.Please any one guide me to implement this....... ...

UIViewController problem

how to get objects values from uiviewcontroller classes iphone. I am using this SecondViewController *newObject=[[SecondViewController alloc]init]; But newobject has textview , its value is zero. How could i access that textview iphone. ...

Is it possible to switch uitableviewgrouped and uitableviewplain with uisegmentedcontroller?

Hello all, I am developing an iphone app in which i have a segmented control that has details related to something like a book . I want to show books menu tapping on books segment with uitableviewplain style . but now I want another segment which should show the book vendor details with uitableviewgrouped . how can i manage both thes...

Iphone application occupied memory

How can I find out how much memory does my Iphone app occupy in any given moment from within the app itself? I'm interested in this on the device, not in the simulator. Is it an API to call for that? As another approach, how can I find out how much free memory does the device have at a given time? ...

Webmethod parameter stay null

Hello, I am developing an iPhone application which sends SOAP messages to a .NET Webservice to call several WebMethods. These methods getting data out of a database and return this in a SOAP message back to the iPhone. When i sent a SOAP message that calls the WebMethod without any parameters it works just fine. But when I pass a para...

How to override tabbar's more controller?

Hi all, I'm having very annoying problem with UITabBarController's "more" tab controller. It supports rotation to landscape mode by default, but does not propagate the event to it's subviews (or view controllers which are managed by it) by calling appropriate delegate methods, so all controllers under the "more" section can be rotated, ...

position tracking

Hi, I need to get the current location name of the iphone user. How can i get the location name. i am new to iphone development please help Thanks, ...

iPhone: Writability of the Documents directory

Is there a way to write files to this directory remotely? I'm hoping it's possible to do via iTunes or whenever the iPhone is connected to a Mac/PC via USB. Could this be done with an iTunes plugin? If all else fails, is there an easy way to setup a WebDAV server on the iPhone? Thanks. ...

How to Customize UISlider ?

I understand how you can have a minimum track and maximum track image, and how it can be stretchable. However, for my needs, that might not be enough control. I have a situation where on the left hand side (minimum track) I need to display two different colors, based on data. The left hand side actually represents two pieces of data, bu...

Create json data on iPhone with integers, bools..

Using the json-framework for iPhone (http://code.google.com/p/json-framework/) it's really easy to create json data from a NSDictionary. Like so; NSString *json_string = [json_parser stringWithObject:dictionary]; This works perfect if I have objects like NSString and so on in my dictionary. But I also need to send integers,bools and f...

Problems with a checkmark in a UITableViewCell

I have implemented this below code. UITableViewCell *cell = [tableView1 cellForRowAtIndexPath:indexPath]; UITableViewCell *cell2 = [tableView1 cellForRowAtIndexPath:oldIndexPath1]; cell.accessoryType = UITableViewCellAccessoryCheckmark; cell2.accessoryType = UITableViewCellAccessoryNone; oldIndexPath1 = indexPath; But, if I select an...

Event from JAva Script to objective c

Hi , I am developing a map application for iPhone.I am using google maps API to develop this,by adding the java script file to the resource.My problem is that I need to catch an event defined in the java script. for eg: I need to cath the following event in java script "GEvent.addListener(poly, "click", function(latlng, index)" . Please...

UINavigationController popViewController is popping everything!

So I'm trying to pop a view controller off the stack when an error occurs, but it seems like it's popping too much off in one go. The navigation bar up the top loses its title and buttons, but the old table view data remains visible. I have no idea what's going on... The basic set up is: Tab View template Navigation controller View ...

iphone sdk- UIGraphics - how to select a superview as current drawing context

hello, i'm trying to draw a line from the originate point of an image view to its destination point. my problem is (i guess) how to set the superview as current drawing context (from the image view). can someone help please. this is the code i'm using in image view.. //UIGraphicsPopContext(); CGContextRef context = UIGraphicsGetCur...