iphone

Memory climbs but without any memory leak in code, happens in iPhone 3G, SDK 3.0

Hello all, I found that memory kept growing without any memory allocated in code when running a opengles based program on iPhone 3G device. Copy from Instrument: Instances / Responsible / Responsible Caller ------------------------------------------------------------ GeneralBlock-8 / QuartzCore / x_list_prepend_ Gen...

hiding TabBar when rotating iPhone device to landscape

Hi, So here is what i have: A UITabBarController that handles different UIViewControllers. In one of the UIViewController i am trying to switch the view being displayed when the device rotates to landscape. the important part is that the view displayed in landscape MUST take the whole screen... I have correctly implemented the methods :...

Core Data, NSPredicate and to-many key

I have a Core Data model in which a Task entity includes an optional to-many relationship excludedOccurrences. One of the properties of excludedOccurrences is start, which is an NSDate object. The ExcludedOccurrence entity has an inverse mandatory to-one relationship to the Task entity. In order to fetch tasks for a specified day, I nee...

NSConcreteData vs NSData

I have added an extension to NSData (base64 extension), which I kept over a separate infrastructure class lib project. But when i use this method from my main project i am getting an error like this: "-[NSConcreteData encodeBase64]: unrecognized selector sent to instance 0x121e60'". But if i keep the same class in my main project itself...

Setting background colour of a UIView increasing memory usage

I am loading a number of UIViews onto a UIScrollView and am trying to track down why they are using so much memory. After a process of elimination using Instruments I have discovered that setting the background colour of the views increases memory usage by 4 times. If I don't set the background colour the memory usage sits at around 4....

scrollRectToVisible with multiple UIScrollView not working ?!

Hi guys, I've a big issue with "scrollRectToVisible" method, part of UIScrollView class. I've a view with 4 UIScrollView displayed from top to bottom, with paging in the width way : I can browse in them (like the in the "pictures" app, but with 4 images on the same view) i can resize the height of each of them everything works fine N...

Automatic Tab Switch

Hi all, I'm building an iPhone application with a UITableView. On selecting a row a web page is loaded in a UIWebView in the next tab along. Currently this is all working, however, how can I set the application to automatically move into the tab where the webpage has been loaded into the UIWebView? Is there some form of animation that ...

Changing UITableViewCell textLabel background color to clear

In my app i have a table view with customViewCells. i subclassed the UITableViewCell class and added an image that will load async and for the text i use cell.textLabel.text = @"someThext". for the cells the background color is set alternatively to [UIColor darkGrayColor] and whitecolor. When i run the app in the simulator and on the p...

Change the position of the left UIImageView in a UITableViewCell in OS 3.0

Hello, I have a UITableView with standard UITableViewCells that contain an image on the left. I'm setting the image of the cell as follows: UIImage *leftIcon = [UIImage imageNamed:@"myImage.png"]; cell.imageView.image = leftIcon; This works fine. However, there's a difference in appearance depending on which iPhone OS the App runs. ...

Coredata on iPhone, setFetchBatchSize & setPropertiesToFetch in one Request

Hi, I'm writing a coredata based iPhone app that displays recipes. To improve performance, when displaying them in a TableView, I want to enable batching (-setFetchBatchSize:) and fetching only the "name" attribute (-setPropertiesToFetch:). When I turn on both, it doesn't work and the list is empty. As soon as I comment out one of the l...

How could Apple know that an iPhone app makes use of hidden API?

I wonder if they have any fancy tools that detect usage of hidden API. Does anyone know? ...

What happens if Apple detects hidden API usage in an iPhone app?

Would they just take the app off from the store / not let it pass in, or would the cancel the whole contract with the developer? ...

API's used in iBeer and iMunchies iPhone Applications

Hi all, I just wanted to ask you guys if you have some idea about which API's or techniques were used in iBeer and iMunchies applications? These applications are not useful (in my personal opinion), but does have some cool effects. Theories are welcome :). Just trying to gain some knowledge. Best Regards. ...

Iphone Unit Testing error : permission denied with google toolBox

Hi, I followed many tutorial to set up a unit testing project for Iphone but i always get the same "permission denied" error when i build the project. Here is what i do : Get the latest source for Iphone Unit Testing Follow the instruction to set up the unit testing framework (Create a new project, add a new target, copy the necessar...

Can't get landscape bounds for modal UIViewController

Hi, I have a landscape view which is activated via listening for orientation notifications and then presenting a modal view controller. However, it's giving me some grief. It seems whatever I do I just can't seem to get landscape bounds. super.view.bounds is {{0, 0}, {320, 480}} portrait, even though it is drawing at the correct orien...

How can I use CIFilter in iPhone OS?

Apple says that CIFilter is available in iPhone OS. However, on my mac I couldn't find an CoreImage framework to link against. filter An optional Core Image filter object that provides the transition. @property(retain) CIFilter *filter i.e. when I try to do something like this, it crashes because CIFilter is unknown: [trans...

UIActivityIndicatorView animation

i have a tableview controller, when i select a row its pushing another view controller. In that view controller 's loadView i have to request a url. it will take 5 or 10 secs to complete the request. i have to show UIActivityIndicatorView for that delay . I have a UIActivityIndicatorView in my table view didSelectRowAtIndexPath and I...

searchDisplayController: change the label "No Results"

Hello, how do I change the label "No Results", when using a searchDisplayController? Regards ...

Is file transfer possible to iPhone 3.0 via Bluetooth or not?

Is it possible to transfer files of a bluetooth device, lets say a digital pen (e.g. Nokia or Logitech io2) to the iPhone? I am interested if I could do a native application that could somehow get that binary file sent by the digital pen and do something with it. I am used to rfcomm and obex but I can only find inconclusive results when...

Problem in landscape mode

Hi All, I want to do something like done in application UICatlog->Transition-> Flip Image. Its for flipping the image from Left to Right or vice versa. It is working fine in Portrait mode. Problem is when i want that same effect as flipping the image from left to right in Landscape mode. Please help me in this issue. Thanks in advance...