Hi,
I have a UIScrollView that can contain a variable number of other UIViews
(UILabels, UIImageViews, etc), but I'm confused as to how to manage the
UIScrollView contentSize given the variability in the number of views it will
contain. I'd like to use IB to create my view, but is this
Have you tried calling setNeedsDisplay on the view? You need to request that
a view redraw when the data or state used for drawing a view changes.
Bob
On Feb 11, 2010, at 3:44 PM, PCWiz wrote:
> I'm trying to do some custom drawing in a CALayer subclass by overriding the
> drawInContext: met
id Duncan wrote:
> On Feb 2, 2010, at 11:58 AM, Bob Barnes wrote:
>
>> I've recently upgraded to Mac OS X 10.6.2 in order to run the Analyzer for
>> Xcode and it's pointing out some potential memory leaks that really have me
>> confused. A typical example is whe
Hi all,
I've recently upgraded to Mac OS X 10.6.2 in order to run the Analyzer for
Xcode and it's pointing out some potential memory leaks that really have me
confused. A typical example is where I have a method that allocates and returns
something like a CGPDFDocumentRef or CGContextRef. Th
Kyle,
Good ideas, but the static analyzer is Xcode 3.2, which requires
10.6 I believe. I'm still running 10.5.
Bob
On Nov 10, 2009, at 1:30 PM, Kyle Sluder wrote:
On Nov 10, 2009, at 12:57 PM, Bob Barnes wrote:
hi all,
My iPhone app has 2 subclasses of CALayer that appe
hi all,
My iPhone app has 2 subclasses of CALayer that appear as leaked
objects when I run Instruments. In an effort to understand why I
inserted calls to retainCount when allocating these objects. After
calling alloc the reference count on my objects is 0, but after
calling the init m
, 2009, at 4:31 PM, Henry McGilton (Boulevardier) wrote:
On Oct 23, 2009, at 10:29 AM, Bob Barnes wrote:
Hi all,
I posted this a yesterday, but it never appeared on the list and
it's not showing up in the web archive so I thought I'd retry.
I have a UITableView that contains some
Greg,
The sample code is Apple's UICatalog and my view controller IS a
subclass of UITableViewController. What's making this so frustrating
is that it should just work according to everything I've read, at
least in 3.0+. There are some subtle differences between my code and
the sample
Hi all,
I posted this a yesterday, but it never appeared on the list and
it's not showing up in the web archive so I thought I'd retry.
I have a UITableView that contains some cells with UITextField's
embedded in them. When I touch the UITextField to begin editing the
keyboard pops u
Hi all,
Apple's UICatalog sample iPhone app has a view demonstrating
various styles of UITextFields and when one of the text fields is
selected the table view scrolls the view if necessary to keep the
chosen UITextField visible above the keyboard. I'd like to have the
same capability
hi all,
I'm using the UINavigationBar tintColor property to modify the
color of navigation bars and that works fine except that the backItem
doesn't change color until it's touched (even if the touch doesn't
result in a tap) or I navigate back. Anyone have any suggestions on
what to 'po
Bartosz,
It's a little difficult to know for sure without seeing your code,
but your comment that "I change a size of webview" makes me a bit
suspicious that you're not letting autoresizing do the work for you. I
have an app that uses a webview to display a pdf and it resizes
properly
Yes, I realize it's off-topic and I did try to post on the iPhone
development forum, but I keep getting an error trying to create an
account.
On Oct 1, 2009, at 12:45 PM, I. Savant wrote:
On Oct 1, 2009, at 3:38 PM, Bob Barnes wrote:
I've generated the appropriate certif
I've generated the appropriate certificates and created a
provisioning profile (development) that is generic, i.e., uses the
wild-card character. The provisioning profile does NOT include either
APNS or In App Purchase, but when I load the app onto the iPod Touch
an entry is added under
Nick,
Thanks, I suspected as much.
Bob
On Sep 29, 2009, at 3:27 PM, Nick Zitzmann wrote:
On Sep 29, 2009, at 4:18 PM, Bob Barnes wrote:
I wanted to follow up my email from last week with some additional
questions about the leaks instrument and what it is or isn't trying
to te
all,
I wanted to follow up my email from last week with some additional
questions about the leaks instrument and what it is or isn't trying to
tell me. When running the leaks instrument with NSZombieEnabled
several lines of the following code are flagged as leaked memory...
NSStrin
and
then later released it without ever having retained it. I'm
concluding (perhaps incorrectly) that using buttonWithType: doesn't
grant 'object ownership' in the same way that alloc does.
Bob
On Sep 25, 2009, at 12:36 PM, Greg Parker wrote:
On Sep 25, 2009, at 12:14
all,
My iPhone app has a UIView subclass that uses a number of CALayer
objects. In normal operation the app works fine, but in low memory
conditions (either real or simulated) I'm getting a "EXC_BAD_ACCESS"
failure and I suspect it's related to my use (or misuse) of CALayer's.
I've be
9, at 2:57 PM, Bob Barnes wrote:
all,
My iPhone app is reporting a segmentation fault when terminating
(only on the real device, not in the simulator) and also reporting
a bad file descriptor. Anyone have any idea what the message is
trying to tell me or how to find out. It occurs afte
all,
My iPhone app is reporting a segmentation fault when terminating
(only on the real device, not in the simulator) and also reporting a
bad file descriptor. Anyone have any idea what the message is trying to
tell me or how to find out. It occurs after the call to dealloc has
completed.
ted in changing this behavior, you'll
want to subclass UITabBarController.
Luke
On Aug 11, 2009, at 9:56 AM, Bob Barnes wrote:
Hi all,
I have an app with 3 primary views, 2 of which are table views
when in portrait mode, but display as full screen coverflow style
in landscape mode. I
Hi all,
I have an app with 3 primary views, 2 of which are table views
when in portrait mode, but display as full screen coverflow style in
landscape mode. I originally created a 3rd table view to serve as the
initial view as a way to get to the 3 main views with the intent I
would mig
could be moved.
Bob
On May 22, 2009, at 11:19 AM, Dave Camp wrote:
If all you want to do is display a PDF, just use a UIWebView. It will
display the PDF just like Safari with scrolling and whatnot and handle
everything for you.
Dave
On May 22, 2009, at 10:35 AM, Bob Barnes wrote:
Hi,
I
Hi,
I'm new to both Cocoa and iPhone so perhaps I've taken on
something too complicated for a beginner, but I'm trying to display a
PDF in a UIScrollView so that I can zoom/drag, etc. I've created a
view hierarchy with a main UIView (probably should be a
UIViewController, but that's an
On Jul 21, 2008, at 12:06 PM, David Duncan wrote:
On Jul 21, 2008, at 9:49 AM, Scott Anguish wrote:
On 21-Jul-08, at 10:48 AM, Bob Barnes wrote:
I hadn't considered that but I cut and pasted it directly from the
documentation.
- (void)drawInContext(CGContextRef)ctx {
On Jul 21, 2008, at 9:49 AM, Scott Anguish wrote:
On 21-Jul-08, at 10:48 AM, Bob Barnes wrote:
I hadn't considered that but I cut and pasted it directly from the
documentation.
- (void)drawInContext(CGContextRef)ctx {
NSLog(@"drawInContext called");
}
that sho
On Jul 20, 2008, at 10:43 PM, Scott Anguish wrote:
that shouldn't be an issue if he's explicitly calling the
setNeedsDisplay
is the method signature correct on your implementation of
drawInContext:?
On 21-Jul-08, at 12:22 AM, Brian Christensen wrote:
On Jul 20, 2008, at
On Jul 20, 2008, at 9:22 PM, Brian Christensen wrote:
On Jul 20, 2008, at 20:00, Bob Barnes wrote:
I have some questions related to CALayer drawing. I want to be able
to display images, text, 2D graphics or a PDF page. I'm able to
display an image by directly setting the contents pro
On Jul 20, 2008, at 5:06 PM, Jens Alfke wrote:
On 20 Jul '08, at 5:00 PM, Bob Barnes wrote:
I have some questions related to CALayer drawing. I want to be able
to display images, text, 2D graphics or a PDF page. I'm able to
display an image by directly setting the contents prop
hi,
I have some questions related to CALayer drawing. I want to be able
to display images, text, 2D graphics or a PDF page. I'm able to display
an image by directly setting the contents property using a CGImageRef
or subclassing CALayer, overriding display and sending setNeedsDisplay,
but
30 matches
Mail list logo