ipad

option drag entity of data model to interfacte builder don't work

Hi, These are the steps i make: I create a simple data model of one table with two propertys. Then I compile the datamodel, and then i build the project. Then i make a new xib file with a view then i drag my entity with the option key to the view and i see a + symbol. Then i let my mouse go and nothing happens.... What am i doing wron...

iPad popup question

Below is some code I am using to display a popup. The first time this is called the popup gets displayed. The 2nd time it is called it fails with a "EXE_BAD_ACCESS" error. It fails on the line "self.myTextPopOver = pop;" If I comment out the line [pop release] everything works OK but that would mean I am leaking memory. // Popover Text ...

HTML Movie player in iPad modal dialog

Hello, I have modal view controller: [ self presentModalViewController: some_controller_ animated: NO ]; In this controller i have UIWebView with player - <video> tag. <video id="player" width="420" height="310" autoplay='true' controls> <source src='<TMPL_VAR NAME=VIDEO_URL>' type="video/mp4"/> </video> It has native contr...

How to display a view when webview is touched continously for 10 sec?

Hi, I am displaying a pub or a pdf file in webview.But i am not able to detect the touch on the webview. - (void)touchesBegan:(NSSet *)touches withEvent:(UIEvent *)event above method is called when i touch any text of the pdf or pub file.How can i detect the click on the webview which is displaying a pdf or a pub file.Please help me...

Playing video on an iPad

I want to play video in iPad. It works well in all browsers in mac and windows but not on iPad (see example). I had used slider.js and the HTML5 video tag on click of "SD", made it display block and on close display none but it doesn't work on an iPad. ...

Code paths on iOS

We have an app that uses network, compass, camera and telephony. It has been rejected because we don't specify in UIRequiredDeviceCapabilities the keys that are requiered or prohibited. This is a newer version of an app that we upload months ago and we don't had any problem before. On documentation says You should include keys only ...

iphone/ipad memory leak from NSString assigned to itself

I have two leaks shown by the instruments tool. I have looked around on google but I haven't seen exactly my problem on there. Problem #1: self.wallText = [[text stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceCharacterSet]] stringByTrimmingCharactersInSet:[NSCharacterSet newlineCharacterSet]]; I have tried various configu...

UITableViewCell accessory not positioned correctly after rotating UITableView on iPad

I have an iPhone app that I've converted to a universal app. The app works fine in all orientation on the iPhone. However on iPad when I rotate a table view, the UITableViewCell accessory is not repositioned correctly (see images below). I'm using a standard UITableViewCell of type UITableViewCellStyleSubtitle. The rest of view is drawn...

Scaling problem with -webkit-transform with mobile safari on iPad

In the HTML page below, I am scaling a block with a -webkit-transform. The transform scales the block from its initial size to its double size. This works as expected with Safari, and Chrome on OSX. But, on the IPad (both the simulator and the device), the scaling start from a single point instead of the original size of the image. As...

Do I need to convert NSUInteger to size_t?

If I have the following code: NSUInteger i, count = [pages count]; for (i = 0; i < count; i++) { Page* page = (Page *)[pages objectAtIndex:i]; [page setPageNumber:[i unsignedIntValue]]; } PageInfo.pageNumber is a size_t. Is it still necessary to use [i unsignedIntValue] or do I just assign i directly? ...

Problem in memory manegment?

Hi, I developing an application, in which i working with database manipulation. The method i have written in database class as follows. -(NSMutableArray *)getData: (NSString *)dbPath{ NSMutableArray *dataArray = [[NSMutableArray alloc] init]; if(sqlite3_open([dbPath UTF8String], &database) == SQLITE_OK){ NSString *sqlQu...

IPad keyboard hides selection list

Hi, I've got a web page targeted to iPad. It contains a textarea followed by a dropdown. The problem is when a user moves focus from the textarea to the dropdown the keyboard does not hide and overlaps with opened drop down list hiding it (or the list appears too short because of the keyboard). Did anybody face it? What do you suggest?...

Limiting mapkit region on iPad

I need to have an iPad app show a given country with some anotations using mapkit. Is it possible to limit it so the user can not scroll over to another region than the one i want to show? For example, my app wants to show stuff about Brazil, can i make it so the user can not move away from that country? This question is regarding Mapk...

shared static function in objective-c iphone?

I need to calculate from pricing based on some business rules and I do not want to duplicate this across several ViewControllers. Coming from a .Net world I would use a static method on a class to do this. What is a similar solution in Objective-C? ...

iphone [removeObjectIdenticalTo:] doesnt work

I have the following code that populates an array (this is within a loop): NSString *code = [NSString stringWithFormat:@"%@ - (%@) %@",[tempDic objectForKey:@"state"],[tempDic objectForKey:@"city"],[tempDic objectForKey:@"name"]]; [tempArrayOfAirports removeObjectIdenticalTo:code]; // checks for a previous object, then removes if found...

Convert Special Characters for RTF

Can someone please assist me with converting special characters to something that can be correctly represented in an RTF file? I am taking text stored in a string on the iPad and outputting it as an RTF file using NSASCIIStringEncoding. So far so good. What I've neglected to do successfully, is take into account special characters (e.g....

XCode instruments not reporting any data

I'm trying to debug in XCode using the instruments but most of them are not showing any data. I tried this from my home machine and it worked fine, but on my work iMac the following instruments report no data at all: Activity Monitor Allocations Memory Monitor The Leaks instrument seems to be working fine. I am developing an iPad a...

Converting images on the ipad, or server side

I'm working on an ipad application that needs to work with images; it uses four different versions of each image in different situations (each has its own resolution and image quality). The options I have to get the images in the app are: 1) Download only the original image. Convert the image into several formats on the ipad. CPU/mem c...

How to display temporary popup message on iPhone/iPad/iOS

I'd like to display a temporary message on the iPhone/iPad displaying confirmation of an action, or some quick status about some background activity. Is there a standard control to do this? I've seen apps do this. A rounded rectangle, dark and partially transparent with text inside. It does not ask for user input but disappears on its o...

Getting Objective-C to talk to JavaScript with UIWebView

I am building an iPad app that loads local html files in a UIWebView. I have an int stored in a view controller that I want to use to determine what content to load into the html document. Additionally, I want to have clickable links in the html that create generate new, smaller UIWebViews on the highest layer, like a "pop-up". How doe...