iphone

iPhone Landscape Mode returns incorrect view sizes

Hi Forum Getting a view's bounds rect while in Landscape Mode returns the wrong sizes: (I know there's been a lot of posts on Landscape mode, but nothing on this problem.) Starting from a new UIView Template Project, I'm adding a single UIView to the ViewController in Interface Builder (in Landscape Mode) and setting the view size to...

Using UIWebView to render images instead of UIImageView in iOS uses much less memory. Makes sense?

I just figured out that - instead of using a UIImageView to show an image - I use an UIWebView, it uses much less memory. Does that make sense for anyone? What I did was to get an ordinary .jpg file with about 280kb in size and show it on a simple app with just an UIImageView. Looking at Instrument's Object Allocations tool, the applic...

UITableViewCell and images overlapping problem

Hello , i have a strange issue with my UITableView...I add a UIButton as a subview to each cell , but when any of the cells gets out of view something happens, and when i scroll up again , i can see that the UIButton background images of some cells are overlapping ! The cellForRowAtIndexPath method i use contains the following code , wh...

Can I submit the same app to the App Store under multiple, different accounts/identities?

Working for a digital agency, you get a lot of interesting requests! :) I have a client who has asked a rather strange question: Is it possible to submit the same app to the App Store under multiple, different accounts/identities? So if you search for Company A in the App Store, you would get this app as a result, and if you also sear...

How to reference a environment variable inside Obj-C code

I define a path variable in Xcode source tree called "MY_SRC_DIR". I would like to get the value of this environment variable and put it in a NSString in the obj-c code. For example, -(NSString*) getSourceDir { return @"${MY_SRC_DIR}"; // not the right solution and this is the question } ...

iPad search bar bad memory access?

Hello all, So I am trying to implement a search bar in my app and am very close but can't seem to figure out where this memory error is occurring. This is what part of my search method looks like: filters = [[NSMutableArray alloc] init]; NSString *searchText = detailSearch.text; NSMutableArray *searchArray = [[NSMutableArray alloc] in...

How would I go about accessing the iPhone filesystem via Java?

I was wondering how such a thing is possible to do? I am aware Java isn't exactly the most hardware language available, but is there a way to access the devices filesystem? If so could you link me to some helpful information and how I would go about doing so? Thank you very much! ...

iphone uitabviewcontroller

Hi, I want to have same segmented control across on all navigation tabs with segment value change delegate in it which refereshes currently selected tab data. . I dont want to create different sengemented control for each tab. Please guide me. Thanks in advance. Regards, Malleswar ...

iPhone web-app: HTML5 database and audio files

I'm having issues with audio files on the iPhone web-app. Seems as each time an audio file is played, it's loaded first then played, even if repeating the same audio on a page that hasn't refreshed (done via javascript). From what I've research manifest files would be great but they are for offline application. I'm now researching HTML5 ...

Adding Garbage Collection to iPhone?

MonoTouch has automatic garbage collection on the iPhone. Couldn't someone prematurely implement garbage collection for Objective-C on iOS? I'm not the guy to do it, but I'm curious as to why or whether this is impossible. I know that projects like this exist: what does it take to use them on iOS? Since they are in C/C++ anyway, and Obj...

Issue with NSNumber -initWithDouble and resulting values

Hi all, I'm using NSNumber to store various values, but sometimes run into issues when doing calculations with the values and initializing new NSNumber objects for the results. I've figured out how to overcome it, but I couldn't for the life of me explain why it works and since my grasp on numerical values in computer environments (doub...

Call Google Maps with Url from Objectve-C

i call the url of googlemaps to show a position to a given lat and long. How can i mark this position on the map with a pin ? NSString *latlong = [NSString stringWithFormat:@"%@,%@", einBetrieb.lat, einBetrieb.lng]; NSString *url = [NSString stringWithFormat: @"http://maps.google.com/maps?ll=%@", [latlong stringByAddingPercentE...

Core Data - Count of Related Records

Hello all, I am new to Core Data programming and am trying to work out the concepts involved. I have an object called a Lease that has a many-to-many relationship with Apartment objects. Given a Lease object, how do I get a count of the related Apartment objects or an NSArray of the related objects? Thank you! ~~Garth ...

`#import "FBConnect.h"` vs. '#import "FBConnect/FBConnect.h" '

It took me some time to get XCode to locate the Facebook sdk. I added ‘....../facebook-ios-sdk/src ‘ into ‘Header Search Paths’ in ‘Project Settings’ (the ‘Header Search Paths’ in the ‘Target Info’ does not show the directory however) , and use: #import "FBConnect.h" , instead of #import "FBConnect/FBConnect.h", then the XCode can ...

XML Parsed data into a Custom View with UILabel instead of UITableView

Hello future friends who is gonna help me big time on this project, I have these Books parsed from XML file (adopted from this post I found). First view (RootViewController) has a list of book titles in a UITable. When user clicks on one of the books, instead of viewing the books detail (BooksDetailViewController) in a second UITable, I...

What is the correct mime-type for serving an iPhone .ipa file?

I'm trying to post .ipa files onto our apache web server for our beta testers to download. Currently I'm using the following line in .htaccess to serve the files: AddType application/octet-stream .ipa This works great in Safari and Firefox, but in IE the .ipa extension is removed and is instead replaced with .zip. So instead of MyApp...

UIImagePickerController Image Orientation

Can anyone tell me how to use the UIImagePickerController (camera and album) delegates determine the image's orientation, rotate accordingly, and assign it to a UIImageView? ...

Can someone tell me what does "XThrowIfError" does?

I cannot find its definition in the documentation... ...

I am trying to remove escape characters etc from an NSString

I have an NSString which has escape characters etc in it. I need to clean this piece of NSString so that I can display it to the user. Can anyone help me solve this problem. It's a bit tricky because its not in HTML format its in escaped HTML format hotel description <B>Description</B>Friendly and laid-back, the de Alcudi...

What's making NSArray access so slow?

I'm working up a graphics effect for an iPhone app that simulates a low-res plasma effect from old demoscene days. I've got 600 squares on screen that are updating as fast as possible. Since I am using CoreGraphics (for now), I can get a very constant 11FPS with no freezing-- BUT when I try to add one simple NSArray lookup, the iPhone a...