iphone

How can i increase the button width dynamically depends on the text size in iphone?

Hi Buddies, I have created 10 buttons programmatically and set the titles in the button. Now i want to increase the button frame size dynamically,its depends on the text. I given some conditions and set the frame size. but how can i set the exact frame size depends on the text(get the text dynamically). Here my sample code is, f...

Code::blocks and iPhone development

Hello, Is it possible to use Code::Blocks to develop for iPhone? I mean if I may include the necessary frameworks, do remote debugging, etc. I never used Code::Blocks but it seems a good choice for multiplatform development. I saw that it easy to integrate gcc in the IDE on Windows(it also has a setup with mingw). Thanks! ...

Extract entire addressbook from ABpeson objective c iPhone

This is my code: ABAddressBookRef _addressBookRef = ABAddressBookCreate (); NSArray* allPeople = (NSArray *)ABAddressBookCopyArrayOfAllPeople(_addressBookRef); NSMutableArray* _allItems = [[NSMutableArray alloc] initWithCapacity:[allPeople count]]; // capacity is only a rough guess, but better than nothing for (id record i...

iphone programming: making a MVC-styled app to parse JSON correctly?

I'm trying to create an iphone app which grabs a JSON string, parses it and displays a list of items in at table view. I'm also attempting to use an Model-View-Controller (MVC) architecture for my project. My question is in 2 parts: 1) How do I structure my different files to conform to this standard (MVC) ? 2) (more general) I've be...

Clicking URL Link on TTStyledTextLabel doesn't push a new page

hey. When I am clicking URL link on TTStyleTextLabel, it doesn't push a new page. But when I looked at the TTCatalog, they don't have any method in the styledtexttestcontroller which seem to open up the webpage. So how does TTCatalog do that? How can I do that? ...

iPhone -- Applying MVC when the view hierarchy has a parallel structure to the model hierarchy

I have a Triangle class. Each Triangle has three edges a, b, and c, and also three angles angleA, angleB, and angleC. In addition to the size (length or angle), each datum also stores whether it was entered by the user or was calculated based on geometric relationships to other data. Corresponding to my Triangle class, I have a Triang...

Deploying Apps to IPhone without Dev Licence

Hi All, Ive applied for the IPhone App developer license over a week ago but still havent heard anything back from apple as of yet. Im quite deep into the development of my application and am wondering if there is a way i can deploy it to a device for testing in the meantime (while waiting for apple to get back to me)? I cant jailbrea...

How to show and dismiss ViewControllers without the user seeing

I have several view which I show and dismiss, but it is visible when a view moves onto screen and is dismissed from the screen. How do I set it to just appear without any animation? I have tries the animation:NO, it doesnt change anything. Are there special calls for different animation types? ...

When new ViewController is activated a passed varieble is first (null) and then correct

I've got a very stupid problem. I have a TableView where I'd like to make each cell editable by pushing into a DetailController. It's working so far, but when I do NSLog(@"selectedItem: %@", selectedItem_); in viewDidLoad, the log displays: selectedItem: (null) selectedItem: Toe RootViewController (didSelectRowAtIndexPath): NSStri...

Possible to Stream Video on iphone/iPad Using Windows Encoder?

Hello all i use windows encoder to stream video online and have a server that i use to broadcast this stream. i am trying to make an app that streams video to the iPhone/iPad using a unique link. i have seen apps out that stream their own DVR cameras so there must be a type of converter or encoder to use. any suggestions? ...

iphone XML attachments

My iPhone app will be receiving an xml feed from a Java web service. The xml is in a SOAP message. I can easily parse data from within the xml however there is a jpeg attachment to the SOAP message that I need to display within the iPhone app. Does anyone have example code or a link to some documentation on how to work with SOAP attachme...

How to implement iPhone Contact app edit transition effect?

I'd like to reproduce the animation effect that the Contact app uses when switching to edit mode. Specifically I have a number of fields that I'd like to display in a more friendly format, but then expand them into a layout that makes them easier to update or add when in edit mode. Is this done using core animation? Thanks ...

Fastest way for iPhone to contact Web server just to create a log entry

I track user activity in my iPhone app by having certain user actions call an almost empty Web page that the app does nothing with. Rather, attached to the URL are some querystring paramaters that tell me who's doing something and what it is (after I analyze the logs, that is). I don't want launching the URL to slow down the app, so I p...

iphone thread sync

Hello I am java developer and need to make thread synch in iPhone. I have a thread, it calls other one and need to wait for that child thread to end. In java I use monitor, by calling wait/notify How can I program this in iphone? thanks ...

iphone nsurlconnection async, wait for done

Hello My code has a function (F1) to return YES/NO based on information read from server. So it uses async nsurlconnection to receive data. So F1 starts connection and MUST wait for data to be loaded The question is how can i implement it? thanks ...

How to put a button on a Map in Iphone

i am trying to pull a map in my applcation with interface builder using MKMapView but for some reason its not showing up. Also i want to add some button to this view by clicking which i can browse a file existing in my iphone. Please provide me with the detial description as i am new to this. Thanks, ...

How to position view below green bar during phone call?

How do I make my view appear below the green bar during a phone call? right now my app is being partially covered by the green bar during a phone call. ...

iPad OpenGL animating texture vs uiimageview

I have a sequence of 24 images that I need to animate on the iPad. The images are full screen - 1024x768. I currently have them displayed using an UIImageView, however there are some issues If I use [UIImage initWithContentsOfFile] to load my images, then the sequence displays very slowly the first time they are displayed, but smoothl...

UIScrollView height change

Hi! I have a UITableView containing a list of maps. When an item is selected a new sub view is added to the main window and the map is shown. In my view controller for the map view the following method gets called each time it's displayed: - (void)showMap { UIImageView *tempImageView = [[UIImageView alloc] initWithImage:[UIImage imageN...

Removing Code Linking for Different Targets in XCode - iAds

I have an app I am working on which has been split into two targets, one for the iPhone and one for the iPad. The iPhone side (w/iAds) runs perfectly, but the iPad target gives me errors. It basically boils down to the iPad target not recognizing the iAd framework. I've tried weak linking but I still get iAd/iAd.h: No such file or dire...