iphone

[iphone / ipad] Why UIWebView only load half of the html string?

Hello All. I have a UIWebView. Here is what I did: I give it a big size, let's say 600 * 400 (h * w), and load with a HTML string A, it shows a paragraph of text and a pic Then I changed the web view's frame (size) to 600 * 200 (h * w), load with another HTML string B, it is fine. Then I change the web view back to the original size, ...

Customising UITabBarItems in their controllers?

In previous applications I have customised my tabBarItems by overriding init (see below) - (id)init { self = [super init]; if(self) { UITabBarItem *tabBarItem = [self tabBarItem]; [tabBarItem setTitle:@"ONE"]; } return self; } After looking at the Xcode templates I am now thinking that I would be better...

UIWebView: open some links in Safari, some within the view

My app features content that (for text formatting reasons) is presented in an UIWebView. Within the content there are links, some of which should open their target in mobile Safari, while others should navigate within the content. So far, I've catched the link requests using a UIWebView delegate. In my implementation of -(BOOL)webView:...

how do I restrict UIButton title text from spilling over

Hi there, New to posting here but got many really useful bits of help already. I am shoving some text into a UIButton title ( UIButton setTitle: forState: ) I want only the first bit of the text to be displayed (ie only amount that fits). Currently, I am getting extra text spilling over into the view. Is there any easy way to help st...

i*-sdk: Placing a bubble on top of all controls

I've got a problem thats been perplexing me for a while. I have a custom control for the iPhone sdk. When the user touches the control I want to draw a small bubble above the users touch position with some information in it. A bit like a thought bubble in a cartoon. Initially I've done it by adding a UIView subview to the control. Howe...

How to display .tiff images in iphone?

Hi Everybody, I want to display .tiff images coming from server in my native iphone application. Is it possible to display .tiff images in native iphone application? I am trying to solve this problem since 2 hrs with no success. I searched the net for nearly 2 hrs with no solution to this problem. Can anyone help me to solve this prob...

How to get audio volume level, and volume changed notifications on iOS 4?

I'm writing a very simple application that plays a sound when pressing a button. Since that button does not make a lot of sense when the device is set to silence I want to disable it when the device's audio volume is zero. (And subsequently reenable it when the volume is cranked up again.) I am seeking a working (and AppStore safe) way ...

Sqlite3_step() keeps returning SQLITE_MISUSE on this query. Any pointers?

I am trying to open a sqlite db in the viewDidLoad routine and trying to send a sql query through to the db, but the sqlite_step() fails every time. I am not sure what's wrong here. I am just trying this as a hello world attempt at sqlite3. #import "RootViewController.h" #import "sqlite3.h" static sqlite3_stmt *statement = nil; @imple...

check if plist exist, if not load from here

I am trying to check whether a plist exists in my doc folder: if yes, load it, if not load from resource folder. - (void)viewWillAppear:(BOOL)animated { //to load downloaded file NSArray *docpaths = NSSearchPathForDirectoriesInDomains(NSDocumentDirectory, NSUserDomainMask, YES); NSString *documentsDirectory = [docpaths objectAtInd...

[iPhone] Handling Alert with UIAutomation

Hi, I'm trying to test the presence of an UIAlertView with UIAutomation but my handler never gets called. At the beginning of my javascript i write : UIATarget.onAlert = function onAlert(alert) { UIALogger.logMessage("alertShown"); return false; } As i understand it, as soon as i specify my onAlert function, it should get ca...

how to get simple text from xml

i am new to iphone.I need to read simple hello world text from xml file.I did n't understand the tutorials, pls post some code or link to read simple hello world text from xml.thanks in advance ...

Core Data inverse relation does not get set

I have an object A with a to-many relation to B. B has a property A that is the inverse relation to A's NSSet. Pseudo code: class A{ NSSet *bConnections; } class B{ A *aConnection; } In the model I have set up the relationship as optional. For A, the relationship is defines as to-many, inverse of aConnection at B and delete...

How can I make a UIImageView rotate to face the touch location?

For an application I have to create a menu which consists of an arrow and circles to which the arrow has to point. - (void)touchesMoved:(NSSet *)touches withEvent:(UIEvent *)event{ UITouch *touch = [[event allTouches] anyObject]; CGPoint location = [touch locationInView:self.view]; if (location.y >= lastLocation.y) { float...

One frontend for iPhone/iPad, Android and Multi-Touch displays.

Hello to all. I have built a multi-touch application which is based on a Java EE backend and combined with BlazeDS to a Adobe Flex frontend. The application runs on a DIY-Multi-Touch which I built. Now I want to use another solution. The Adobe Flex frontend (with a multitouch library) and the BlazeDS adapter should be replaced by a solu...

iphone multiple background tasks

Hi All, I've got a program that uploads photos and uses a background task to do this. At the moment it only uploads to one destination but eventually I would like it to upload to several destinations. (Also in the background). Is it possible to have more than one background task running or should I have one background task that does ...

Not getting messages from Apples push Notification Service?

Hello Friends I have developed application to test Push Notification service provided by apple. I got the device token after registration and also on the server side which is configured on windows using C#.net platform, certificate is installed and there is no issue too. I have send 2 notifications from server to apple server but still h...

Changing the starting view on an existing project Xcode

Hi! I have an old project in Xcode and I want to change the RootViewController files (.m, .h, .xib - a TableViewController) with a normal ViewController! Is it possible or I must restart a new project and import the old files? Thx a lot! ...

how to get node elements from xml file

hi i am new to iphone. Eg: <?xml version="1.0" encoding="UTF-8"?> <Allcategory> <image>PARROT</image> <image>CRANE</image> <image>APPLE</image> <image>ANT</image> </Allcategory> how can i read above xml file and how can i retrieve the nodes and elements from the above xml file.Thanks in advance ...

Showing more information in custom table cell of iPhone

I implemented table view in my app. Now in a table cell right now I am showing only three items, which I feel are very less. What I want to show is that first is an image then another image then text and then accessory. So how can I accomplish this???? ...

Don't dismiss keyboard when presenting popup menu on a custom view

I created my own UIView subclass to present text information to the user. User is able to double tap this view to popup a 'Copy' menu. The problem is that UITextView within the same view controller resigns its first responder status thus dismissing keyboard when popup menu is presented. How do I avoid this? I want my application to behav...