Questions tagged [frame]

Frame refers to a property of a UIView or an NSView in Objective-C. It is a 4-floating-point representation of the View's location in the parent view or window. ... Use the [frames] tag for HTML frames (not iframes).

Frame refers to a property of a UIView or an NSView in Objective-C. It is a 4-floating-point representation of the View's location in the parent view or window.

This tag does NOT refer to HTML <frame> or <iframe> tags.

Do not confuse this tag with either.

3698 questions
38
votes
3 answers

"Incorrect" frame / window size after re-orientation in iPhone

In my iPhone OS application I want (need) to watch for changes in the device orientation in order to rearrange certain portions of the screen. The approach I used was to use CGRect frame = [UIScreen mainScreen].applicationFrame to get the screen…
Rafael Steil
  • 4,538
  • 4
  • 25
  • 30
38
votes
1 answer

Difference between contentDocument and contentWindow javascript iframe/frame access properties

What is the difference between these two properties (contentDocument and contentWindow)? Is there any difference in the way they acces the content in the frame/iframe? Is there any performance issues? Should I use…
Samuel Lopez
  • 2,360
  • 6
  • 29
  • 39
35
votes
6 answers

How to reset AnimationDrawable

I have to animate a circular count down timer and I'm doing it by animating the background of an ImageView using AnimationDrawable (each image has the according slice of the circle removed). The problem is that the user has the ability to pause this…
Levente Kürti
  • 1,005
  • 1
  • 12
  • 23
33
votes
6 answers

ios 7 UiView frame issue

I am running same app in iOS6 and iOS7 which has NavigationBar.It runs well on iOS6, but in iOS7, all view is little bit up like it is not considering the Navigation bar at all. I have tried changing topbar property in simulated metrics option but…
PK86
  • 1,218
  • 2
  • 14
  • 25
32
votes
2 answers

Why am I having to manually set my view's frame in viewDidLoad?

I have a pretty basic setup with a UINavigationController inside a UITabBarController. I'm wanting to programmatically layout the view of the rootViewController of that navcontroller, but when I look at self.view.frame inside viewDidLoad, I get this…
Ryan Waggoner
  • 589
  • 1
  • 7
  • 13
32
votes
4 answers

Removing frame while keeping axes in pyplot subplots

I am creating a figure with 3 subplots, and was wondering if there is any way of removing the frame around them, while keeping the axes in place?
branwen85
  • 1,606
  • 5
  • 20
  • 25
29
votes
7 answers

iPhone - Auto resizing UIWebView content do not fit the frame

I'm generating an UIWebView into my viewDidLoad method, with a tiny size (let's say something like 50x70). And then I put it into a super UIView. I'd like to make its content fit the webView frame. To do this, I wrote : oneView =…
Oliver
  • 23,072
  • 33
  • 138
  • 230
28
votes
5 answers

How to access frame (not iframe) contents from jQuery

I have 2 frames in one page like this (home.html) and then in one frame (treeStatus.html) I…
kazanaki
  • 7,988
  • 8
  • 52
  • 79
27
votes
1 answer

When using two frames in emacs, how do I prevent the compilation buffer from showing up in both?

I work with two monitors, and often use emacs with two frames open; one for each monitor. each frame is split into two side-by-side windows, like so: a | b <-- frame 1 in monitor 1 ------- c | d <-- frame 2 in monitor 2 When I hit my…
SuperElectric
  • 17,548
  • 10
  • 52
  • 69
26
votes
3 answers

Custom MKAnnotation callout bubble with button

I'm developing app, where user is localized by gps and then he is asked, whether he is located in specific place. To confirm this, callout bubble is presented to him straight away, asking him, if he is at specific place. As there is alot of similar…
Yanchi
  • 1,030
  • 1
  • 20
  • 31
25
votes
1 answer

How do I change the footer/footline of a single frame in Beamer?

So basically I've got something like this at the top of my tex file: \setbeamertemplate{footline}{Number \insertframenumber} This applies "Number <#>" to the footer/footline of all frames. Now what I want to do is change the footline for one…
Jonathan Apodaca
  • 5,458
  • 6
  • 30
  • 41
25
votes
1 answer

function for switching frames in python, selenium

I'm looking for a function that makes it easier to switch between two frames. Right now, every time I need to switch between frames, I'm doing this by the following…
Andigger
  • 253
  • 1
  • 3
  • 4
24
votes
5 answers

Getting element within Frame using jQuery

I am trying to access an element which is inside of a frame but haven't had any luck getting to it so far. I have read through a lot of examples here on stackoverflow and in jQuery's documentation but all the examples I've seen have been in…
Jeff Fol
  • 1,400
  • 3
  • 18
  • 35
22
votes
2 answers

UITableView: changing footer view's size programmatically doesn't work

My table view's footer is a view that shows some tweets from a user, so I do not know its height until I got the tweets, I created a FooterViewController that has a method refreshTweets, I add it in viewDidLoad: FooterViewController *controller =…
Heuristic
  • 5,087
  • 9
  • 54
  • 94
22
votes
3 answers

What is the unit of measurement in Xcode

This might sound silly but when i'm working with sizes in Xcode, the total frame size is equal to 320 * 568 ( width * height ). I'm fine with that. But the resolution of the phone is actually different. The iphone 4S is 640*960 & the 5 and next…
Gil Sand
  • 5,802
  • 5
  • 36
  • 78