How can I use corertelephony framework in iPhone
I need to include coretelephony framework in my App. I am using jailbreak phone. Is there any sample code available for it. Please healp Thanks SD ...
I need to include coretelephony framework in my App. I am using jailbreak phone. Is there any sample code available for it. Please healp Thanks SD ...
My program displays a horizontal scrolling surface tiled with UIImageViews from left to right. Code runs on the UI thread to ensure that newly-visible UIImageViews have a freshly loaded UIImage assigned to them. The loading happens on a background thread. Everything works almost fine, except there is a stutter as each image becomes ...
Hi, I am aware this question has been asked several times, but I was unable to find a definate answer that would best fit my situation. I want the ability to have the user select an image from the library, and then that image is converted to an NSData type. I then have a requirement to call a .NET C# webservice via a HTTP get so ideally...
I have an NSDecimal and need this as technical string, i.e. with no formatting in any way. Floating point should be a "." if there is any, and minus sign should just be a "-" if there is any. besides that, there should be no formatting going on like grouping or chinese numbers. I was looking for 2 hours through the SDK but it seems ther...
I'm working on an iPhone application. I added a new framework to my project, and this caused a bunch of linking errors, with the following error for each framework I'm using: ld: warning: in /Developer/Platforms/iPhoneOS.platform/Developer/SDKs/iPhoneOS3.1.sdk/System/Library/Frameworks/Foundation.framework/Foundation, missing required ...
Hey, How do i make such a Table view? So if I turn on the switch, 2 cells should be added. I've already tried [tableView numberForRowsInSection:6]; [tableView reloadData]; but this doesn't work as expected :( any ideas? The best thing would be 2 sections the first section contains 5 cells, the second section contains one cell wit...
Although there is sample code in the ADC for parent/child (one to many rather than inheritance) core data, the child relationship is managed by simply loading all of the related objects into a set, and then into an array. The application I have in mind may have huge amounts of related data per parent object, therefore I would like to use...
Hi, in an iPhone app, I have a socket connection through wifi, and I need to read from inputStream and write to outputStream. The problem is that stream management is event-driven, and I have to wait for event NSStreamEventHasBytesAvailable before reading. So I can't know when reading\writing outside the handleEvent:eventCode delegate me...
I am a 15 year veteran of C++ and thought I could easily handle the memory issues on the iPhone. But I have been humbled by this new environment at several turns. Here is my problem. I hope I am asking the question correctly. Basically, I am keeping a mutable array of my common object at the appdelegate. This seems like the reasonab...
Hey guys, I need to use UIPagecontrol for my application, and I'm not sure how to get started. I'm a beginner, and the examples that apple gives me are pretty complicated. All I need are 3 pages with different views for each of them. Can anyone help me out here? P.S. remember that I'm a beginner! :D thanks ...
A few weeks ago I found somewhere a code that allows one to dump to the terminal, using NSLOG, a hierarchic list of all view, subviews and objects created by an application, but I cannot find this code anymore? Do you guys know how to do that? thanks in advance for any help! ...
When using instruments to debug memory allocation, you can see how much an allocation is using, its address in memory, etc. My question is: is there any way to know which variable/object in your code corresponds to that memory allocation, inside instruments? thanks for any help. ...
Hi I have a WebViewController that inherits from UIViewController and also use shouldAutorotateToInterfaceOrientation. Well so good so far, but when I switch to the WebViewController, then is starts in Portrait mode. Only when I turn the iPhone, it starts rotating. Now any idea how to start in UIInterfaceOrientationLandscapeLeft ? ...
Hi all, I run my program using Object Allocations Performance Tool. My program is a really simple program which has a simple AtlasSprite object. Just it ! but I wached the allocations and it's allocations is always increasing in spite of doing nothing ! any idea !? ...
Im trying to parse twitter trends but i keep getting a parser error at "as_of". anyone know why this is happening? EDIT: Here is the code im using NSMutableArray *tweets; tweets = [[NSMutableArray alloc] init]; NSURL *url = [NSURL URLWithString:@"http://search.twitter.com/trends/current.json"]; trendsArray = [[NSMutableArray alloc] i...
I'm struggling to find a good solution to this problem. In a view controller's -viewWillDisappear: method, I need to find a way to determine whether it is because a view controller is being pushed onto the navigation controller's stack, or whether it is because the view controller is disappearing because it has been popped. At the momen...
I have been using the instruments tool very successfully to fix leaks but when I run the leak tool on the simulator a lot of Malloc problems show up. I have not been able to figure out how to use Mallocdebug from the apple documentation. Anyone know if a gook Mallocdebug tutorial? ...
Hi I have made an iphone fitness application. The issue i am unable to resolve here is that, while the application is running, the iphone goes in the sleep mode, and hence the accelerometer and sound turns off. Which i dont want to happen. Is there anyway i can avoid this from happening? If not that, atleast i could increase the time...
Hi there, I'm experimenting with Core Data, plist files, flat files and sqlite. I can't seem to differentiate in terms of efficiency for small data sets. In terms of the differences on the surface ( i.e the API ), i know the difference. But what I'm trying to get a feel for is which persistence model is best for which situation. Thank...
I've been pondering over this question for a long time already. On the one hand, Interface Builder offers a really easy way to design the interface and wire the elements up with objects in code. On the other hand, in larger projects, Interface Builder becomes a hassle to maintain. Any suggestions would be greatly appreciated. ...