I am trying to use a snippet of code from a Apple programming guide, and I am getting a EXC_BAD_ACCESS when trying to pass a pointer to a function, right after doing a malloc.
(For Reference: iPhone Application Programming Guide: Event Handling - Listing 3-6)
The code in question is really simple:
CFMutableDictionaryRef touchBeginPoin...
Can someone explain me the way reusable cells works for single table view?
How many reusable cells a datasource should create? So far in all samples I've seen only one. Would one even need more?
...
Hi,
I have a UIScroll which has eight or so pages. My aim is for them to 'loop' around so that when the user reaches the last page the first page will be the next page (and vice versa) so that the user could scroll through the pages endlessly. What is the best way to achieve this?
I am working from this example from Cocoa with Love. ...
I have a UITabBarController that has extra views in the moreNavigationController. I would like to be able to detect when the user has clicked Edit, and moves a view outside of moreNavigationController onto the regular UITabBarController items. How can I accomplish this?
...
See image for example: http://img25.imageshack.us/img25/6996/90754687.png
The grey background indicates the size of the UILabel frame.
For some reason, the first line of wrapped text doesn't seem to always center, even though I'm using UITextAlignmentCenter.
Here's the code I use to set up my labels:
self.titleLabel = [[UILabel a...
I have created a new iPhone "View-based Application" in Xcode. I then added a new "UIViewController subclass" and checked the "with XIB for user interface. Now the issue I have is that after hooking up all the variables and message handlers, I cannot push the new controller onto the stack using the following code:
[self.navigationContro...
I have an app that has UITabBarController with two UIViewControllers as its tabs. In the first UIViewController.view I have a continuous animation with repeat count set to INT_MAX. It worked fine until 3.2 and 4.0. On 3.2 or newer, when I switch to a different tab, OS skips to the end of my animations and invokes -animationDidStop:fi...
Hello,
I would like to intercept the touch on the camera button to control exactly when I take the picture by using takePicture. I still want to use the standard UI control (so I would prefer not having my custom controls in the overlay).
Touch -> Button Clicked -> My code -> takePicture
(ie. Apple code for taking picture won't be call...
Is there any way to decrease the standard width of grouped UITableViewCell and put a custom button on the left side(outside of cell boundary)? I tried to change the cell size but it keeps same
...
Hi,
I have a problem I don't understand regarding UIViews and Core Animation. Here's what I want to do:
A small view is presented above a bigger view by putting it as one of its subviews.
When I click a button inside this view, the view should minimize and move to a specified CGRect.
Then the view is removed from its superview.
...
Does UINavigationBar retain nav items pushed onto its stack? In other words, after doing this:
_myNavItem = [[UINavigationItem alloc]initWithTitle:@"Home"];
[self.navBar pushNavigationItem:_myNavItem animated:NO];
do I need to release _myNavItem with:
[_myNavItem release];
in order to avoid a memory leak?
Also, how do I find o...
Is it possible to have UITabBarItem without image, but with bigger text instead?
e.g.: to have text with full height?
...
Hello,
How to change the font size and style of the uipicker view of iphone. can any one suggest?
Thanks
...
I've got a series of UITableViews (Child A, B, C) which all have a common parent Tableview.
Navigating between children tableviews will be sequential (e.g. following a recipe).
At the moment, navigation looks like this:
Starting in Parent TableView (Rows Child A, B, C):
Select Child A -> Push Child A -> View Child A -> click Retur...
I have a view controller managed in a UINavigationController. My view controller puts up a "loading" screen, and uses ASIHTTP to asynchronously load table data. Then it renders its table, and in each cell there's an image that it uses ASIHTTP to asynchronously load. When it lands each image, it uses [self.tableView reloadRowsAtIndexPaths...
I want to drag an object (say a three image) and and as it's moved it reveals the content of a layer beneath it. How should I approach this?
Someone has asked this question at iPhoneDevSDK but no one seems to know how.
...
I'm just learning the iPhone SDK and about drawing with CG and UIKit and whilst I can see the usefulness for building interfaces as a web developer I can't help but think it would be a hell of a lot easy if I could layout content (ie heading, paragraphs, lists, images) with html and css
presumably this is possible using the web view and...
I'm writing an app that uses UITabBar for parts of the navigation. I'm also using UIScrollView for presenting more information than what the screen can typically handle. Because of this, I'm needing to set the scroll view to take into account the height of the UITabBar so that all of the information is displayed.
Is there a way to calcu...
I am currently displaying text in a uiwebview. However I would like to allow a user to click on a word and register an event. Apple has one is sort of thing with iBook. When you click on a word you can choose to look up the word in a dictionary. How can I do the same thing with Web view?
I have thought about making every word a link...
Application Specific Information:
com.oneorangetree.iphoneexample failed to launch in time
elapsed total CPU time (seconds): 3.500 (user 1.680, system 1.820), 17% CPU
elapsed application CPU time (seconds): 0.920, 5% CPU
When the app loads, it does ALOT of stuff in viewDidLoad
It takes about 30 seconds to complete. How can I put thi...