小编use*_*719的帖子

Swift-删除推送通知徽章号码?

我试图在swift中删除图标徽章,但PFInstallation似乎不再起作用了.我该怎么做呢?

swift

68
推荐指数
5
解决办法
4万
查看次数

身体背景颜色没有显示?

我只有一个简单的.shtml页面:

<html>
    <head>
        <meta charset='utf-8'>
        <meta content="IE=edge" http-equiv="X-UA-Compatible">
        <meta content="width=device-width, initial-scale=1" name="viewport">
        <link href="Stylesheets/main.css" rel="stylesheet">
        <link href="Stylesheets/glicons.css" rel="stylesheet">
        <link href="https://maxcdn.bootstrapcdn.com/bootstrap/3.2.0/css/bootstrap.min.css" rel="stylesheet">
        <title>
            Codepixl
        </title>
    </head>
    <body>
        <!--#include file="nav.html"-->
         asdsd
        <div id="Scripts">
            <script src="http://code.jquery.com/jquery-latest.js"></script> <script src="Scripts/jquery.cookie.js"></script> <script src="Scripts/jquery-ui.min.js"></script> <script src="scripts/typed.js"></script> <script src="//codepixl.net/scripts/secret.js"></script>
        </div>
    </body>
</html>
Run Code Online (Sandbox Code Playgroud)

和样式表:

body{
    background-color: #32CD32;
}
.loader {
  position: fixed;
  top: 50%;
  left: 50%;
  margin-top: -115px;
  margin-left: -115px;
    z-index: 9999;
}
Run Code Online (Sandbox Code Playgroud)

但背景颜色没有出现?我尝试过使用html,body {}并使用doctype但没有任何效果!发生了什么?

编辑:我删除了bootstrap,它开始工作......还在这里的页面:http://codepixl.net/indesx.shtml

编辑:我只需要在样式表之前放置引导程序-_-

html css

8
推荐指数
3
解决办法
3万
查看次数

Three.js:为场景中的每个网格循环?

所以我想做的就是做点什么

scene.forEachMeshInScene(function(mesh){
      //And here I can do stuff
});
Run Code Online (Sandbox Code Playgroud)

但遗憾的是,这不存在.我怎么能这样做?

javascript three.js

4
推荐指数
1
解决办法
5049
查看次数

Swift 2.0:初始化 CBCharacteristic?

我正在使用 CoreBluetooth 框架制作一个应用程序,最近我将它移植到了 swift 2.0。在我的代码中,我有一个 CBCharacteristic 的全局变量,在 swift 1.2 中我可以这样做:

var bob:CBCharacteristic = CBCharacteristic()
Run Code Online (Sandbox Code Playgroud)

但是现在它给我的错误是 CBCharacteristic 的 init() 函数已被显式隐藏,因此我无法对其进行初始化。有没有办法解决这个问题?

ios core-bluetooth swift swift2

1
推荐指数
1
解决办法
1849
查看次数

无法将JScrollBar/JScrollPane添加到此JTextPane

好的,所以这里是我的代码片段,其中包含问题:

private JTextField userText;
private ObjectOutputStream output;
private ObjectInputStream input;
private ServerSocket server;
private Socket connection;
private JTextPane images;
private JScrollPane jsp = new JScrollPane(images); 

public Server(){
   super(name+" - IM Server");
  images = new JTextPane();
  images.setContentType( "text/html" );
  HTMLDocument doc = (HTMLDocument)images.getDocument();
  userText = new JTextField();
  userText.setEditable(false);
  userText.addActionListener(
     new ActionListener(){
        public void actionPerformed(ActionEvent event){
           sendMessage(event.getActionCommand());
           userText.setText("");
        }
     }
  );
  add(userText, BorderLayout.NORTH);
  add(jsp);
  add(images, BorderLayout.CENTER);
  images.setEditable(false);
  try {
    doc.insertString(0, "This is where images and text will show up.\nTo send an image, …
Run Code Online (Sandbox Code Playgroud)

java swing jtextpane jscrollpane

0
推荐指数
1
解决办法
90
查看次数

标签 统计

swift ×2

core-bluetooth ×1

css ×1

html ×1

ios ×1

java ×1

javascript ×1

jscrollpane ×1

jtextpane ×1

swift2 ×1

swing ×1

three.js ×1